-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
89 lines (80 loc) · 2.96 KB
/
Copy pathnuxt.config.ts
File metadata and controls
89 lines (80 loc) · 2.96 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
export default defineNuxtConfig({
compatibilityDate: '2026-08-10',
// Develop against a local checkout of the layer:
// COMARK_DOCS_LAYER=../../comark-docs pnpm dev
extends: [process.env.COMARK_DOCS_LAYER || 'comark-docs'],
modules: ['@vercel/analytics', '@vercel/speed-insights'],
site: {
url: 'https://comark.dev',
name: 'Comark',
},
llms: {
domain: 'https://comark.dev',
title: 'Comark',
description:
'Parse and render Markdown anywhere with one JavaScript library for HTML, ANSI, Vue, React, Svelte and Angular, plus plugins and streaming.',
full: {
title: 'Comark Documentation',
description:
'Complete Comark documentation as plain markdown — getting started, syntax, rendering, plugins, API reference, comparisons, and examples.',
},
},
app: {
head: {
link: [
{ rel: 'icon', href: '/favicon.ico', type: 'image/x-icon' },
{ rel: 'icon', href: '/favicon.svg', type: 'image/svg+xml' },
{ rel: 'apple-touch-icon', href: '/apple-touch-icon.png' },
],
},
},
colorMode: {
preference: 'dark',
},
nitro: {
externals: {
inline: ['comark'],
},
},
routeRules: {
'/play/booking': { redirect: '/play?example=booking' },
'/play/recipe': { redirect: '/play?example=recipe' },
'/play/nuxt-ui': { redirect: '/play?example=nuxt-ui' },
'/play/all-features': { redirect: '/play?example=basic' },
'/plugins/built-in/highlight': { redirect: '/plugins/built-in/shiki' },
'/plugins/built-in/syntax-highlight': { redirect: '/plugins/built-in/shiki' },
'/syntax/comark-ast': { redirect: '/getting-started/document-model' },
// The API Reference section moved from /api (which collided with the server endpoints) to /reference
'/api/render': { redirect: '/reference/render' },
'/api/parse': { redirect: '/reference/parse' },
'/api/auto-close': { redirect: '/reference/auto-close' },
'/api/reference': { redirect: '/reference/reference' },
},
$production: {
routeRules: {
/*
* ISR for this site's content URLs (top-level dirs of `content/`),
* revalidated on-demand by the push webhook with a 300s safety-net TTL.
* Both the bare section index and everything under it, per section.
* The layer declares rules for its own routes (/, /tree/**, /blob/**,
* /raw/**, /llms*.txt, /rss.xml, search-sections, /api/code-explorer/**).
*/
'/getting-started': { isr: 300 },
'/getting-started/**': { isr: 300 },
'/syntax': { isr: 300 },
'/syntax/**': { isr: 300 },
'/rendering': { isr: 300 },
'/rendering/**': { isr: 300 },
'/reference': { isr: 300 },
'/reference/**': { isr: 300 },
'/plugins': { isr: 300 },
'/plugins/**': { isr: 300 },
'/compare': { isr: 300 },
'/compare/**': { isr: 300 },
'/examples': { isr: 300 },
'/examples/**': { isr: 300 },
'/kb': { isr: 300 },
'/kb/**': { isr: 300 },
},
},
})