Skip to content

Commit afe5bf7

Browse files
committed
chore: up
1 parent cc5bf4a commit afe5bf7

File tree

2 files changed

+26
-75
lines changed

2 files changed

+26
-75
lines changed

content/0.index.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ sections:
123123
to: '/docs/getting-started/error-handling'
124124
- title: 'Layers'
125125
description: 'Extend your Nuxt application with another Nuxt application to reuse components, composables, layouts, pages and more.'
126-
icon: 'i-ph-stack-duotonen'
126+
icon: 'i-ph-stack-duotone'
127127
to: '/docs/getting-started/layers'
128128
- title: 'Server Routes'
129129
description: 'Create API endpoints and server routes to securely connect with third party services and consume from your frontend.'

nuxt.config.ts

+25-74
Original file line numberDiff line numberDiff line change
@@ -30,50 +30,7 @@ if (process.env.NUXT_EXAMPLES_PATH) {
3030

3131
// https://nuxt.com/docs/api/configuration/nuxt-config
3232
export default defineNuxtConfig({
33-
$development: {
34-
runtimeConfig: {
35-
public: {
36-
website: {
37-
url: 'http://localhost:3000'
38-
}
39-
}
40-
}
41-
},
42-
43-
$production: {
44-
routeRules: {
45-
// defaults
46-
'/**': { cache: { swr: true, maxAge: 120, staleMaxAge: 60, headersOnly: true }, prerender: false },
47-
// prerendered pages
48-
'/': { prerender: true },
49-
'/api/search.json': { prerender: true },
50-
'/sitemap.xml': { prerender: true },
51-
'/newsletter': { prerender: true },
52-
'/design-kit': { prerender: true },
53-
'/enterprise/support': { prerender: true },
54-
'/enterprise/agencies': { prerender: true },
55-
'/api/_content/**': { prerender: true },
56-
'/docs/**': { prerender: true },
57-
// more frequently updated pages
58-
'/modules/**': { swr: 60 },
59-
'/showcase': { swr: 60 },
60-
'/docs/community/changelog': { redirect: 'https://github.com/nuxt/nuxt/releases' }
61-
}
62-
},
63-
64-
routeRules: {
65-
'/docs': { redirect: '/docs/getting-started/introduction', prerender: false },
66-
'/docs/getting-started': { redirect: '/docs/getting-started/introduction', prerender: false },
67-
'/docs/guide/concepts': { redirect: '/docs/guide/concepts/auto-imports', prerender: false },
68-
'/docs/guide': { redirect: '/docs/guide/concepts/auto-imports', prerender: false },
69-
'/docs/examples': { redirect: '/docs/examples/hello-world', prerender: false },
70-
'/docs/community': { redirect: '/docs/community/nuxt-community', prerender: false },
71-
'/docs/api/configuration/nuxt-config': { redirect: '/docs/api/nuxt-config', prerender: false },
72-
'/enterprise': { redirect: '/enterprise/support', prerender: false }
73-
},
74-
7533
extends: process.env.NUXT_UI_PRO_PATH || '@nuxt/ui-pro',
76-
7734
modules: [
7835
'@nuxt/content',
7936
'@nuxtjs/plausible',
@@ -88,23 +45,32 @@ export default defineNuxtConfig({
8845
if (process.env.NUXT_EXAMPLES_PATH) { logger.success(`Using local Nuxt examples from ${process.env.NUXT_EXAMPLES_PATH}`) }
8946
}
9047
],
91-
48+
routeRules: {
49+
// Pre-render
50+
'/api/search.json': { prerender: true },
51+
'/sitemap.xml': { prerender: true },
52+
'/newsletter': { prerender: true },
53+
// Redirects
54+
'/docs': { redirect: '/docs/getting-started/introduction', prerender: false },
55+
'/docs/getting-started': { redirect: '/docs/getting-started/introduction', prerender: false },
56+
'/docs/guide/concepts': { redirect: '/docs/guide/concepts/auto-imports', prerender: false },
57+
'/docs/guide': { redirect: '/docs/guide/concepts/auto-imports', prerender: false },
58+
'/docs/examples': { redirect: '/docs/examples/hello-world', prerender: false },
59+
'/docs/community': { redirect: '/docs/community/nuxt-community', prerender: false },
60+
'/docs/api/configuration/nuxt-config': { redirect: '/docs/api/nuxt-config', prerender: false },
61+
'/enterprise': { redirect: '/enterprise/support', prerender: false },
62+
'/docs/community/changelog': { redirect: 'https://github.com/nuxt/nuxt/releases', prerender: false }
63+
},
64+
$development: {
65+
runtimeConfig: {
66+
public: {
67+
website: {
68+
url: 'http://localhost:3000'
69+
}
70+
}
71+
}
72+
},
9273
runtimeConfig: {
93-
githubAPI: {
94-
token: process.env.NUXT_GITHUB_TOKEN || ''
95-
},
96-
openCollective: {
97-
apiKey: process.env.NUXT_OPEN_COLLECTIVE_API_KEY || ''
98-
},
99-
sendgrid: {
100-
apiKey: process.env.NUXT_SENDGRID_API_KEY || '',
101-
listId: process.env.NUXT_SENDGRID_LIST_ID || ''
102-
},
103-
testEmail: process.env.NUXT_TEST_EMAIL || '',
104-
mailjet: {
105-
apiKey: process.env.NUXT_MAILJET_API_KEY || '',
106-
secretKey: process.env.NUXT_MAILJET_SECRET_KEY || ''
107-
},
10874
public: {
10975
website: {
11076
title: 'Nuxt',
@@ -113,27 +79,22 @@ export default defineNuxtConfig({
11379
}
11480
}
11581
},
116-
11782
colorMode: {
11883
preference: 'dark'
11984
},
120-
12185
fontMetrics: {
12286
fonts: ['DM Sans']
12387
},
124-
12588
googleFonts: {
12689
display: 'swap',
12790
download: true,
12891
families: {
12992
'DM+Sans': [400, 500, 600, 700]
13093
}
13194
},
132-
13395
ui: {
13496
icons: ['simple-icons', 'ph', 'uil', 'heroicons', 'octicon', 'logos']
13597
},
136-
13798
content: {
13899
navigation: {
139100
fields: ['redirect']
@@ -143,19 +104,9 @@ export default defineNuxtConfig({
143104
examplesSource
144105
}
145106
},
146-
147-
nitro: {
148-
prerender: {
149-
routes: [
150-
'/api/search.json'
151-
]
152-
}
153-
},
154-
155107
typescript: {
156108
strict: false
157109
},
158-
159110
experimental: {
160111
appManifest: true
161112
}

0 commit comments

Comments
 (0)