Repository navigation
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
68 lines (60 loc) · 2.06 KB
/
Copy pathnuxt.config.ts
File metadata and controls
68 lines (60 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import process from 'node:process'
export default defineNuxtConfig({
compatibilityDate: '2026-08-21',
/**
* Develop against a local checkout of the layer:
* COMARK_DOCS_LAYER=../../comark-docs pnpm docs
*/
extends: [process.env.COMARK_DOCS_LAYER || 'comark-docs'],
css: [
'@shikijs/magic-move/style.css',
'~/assets/css/devframe.css',
],
site: {
url: 'https://devfra.me',
name: 'Devframe',
},
llms: {
domain: 'https://devfra.me',
title: 'Devframe',
description:
'Framework-neutral foundation for building devtools: one definition becomes a Web Standard handler, a CLI, a static report, an MCP server, or a hub dock.',
full: {
title: 'Devframe Documentation',
description:
'Complete Devframe documentation as plain markdown: guide, adapters, frameworks, add-ons, references, and the error reference.',
},
},
// Nuxt DevTools v4 imports the workspace `devframe`, which is unbuilt in
// `docs:build` (Vercel), so keep it dev-only.
devtools: { enabled: false },
// Dev only: mount the devframes into Nuxt DevTools. The imports are lazy,
// so `docs:build` needs no built workspace packages.
$development: {
devtools: { enabled: true },
// DevTools v4 sets `noExternals` to an array when it is unset. Nitro 2 reads
// any truthy value as "inline everything" and fails on `playwright-core`.
nitro: { noExternals: false },
modules: [
async () => {
const [{ onDevtoolsReady }, { createA11yDevframe }, { createOgDevframe }] = await Promise.all([
import('@nuxt/devtools-kit'),
import('@devframes/plugin-a11y'),
import('@devframes/plugin-og'),
])
onDevtoolsReady(async (kit) => {
await kit.install(createA11yDevframe())
await kit.install(createOgDevframe({ defaultUrl: 'http://localhost:5175' }))
})
},
],
},
app: {
head: {
link: [
{ rel: 'icon', href: '/logo.svg', type: 'image/svg+xml' },
{ rel: 'apple-touch-icon', href: '/logo.svg' },
],
},
},
})