-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
44 lines (33 loc) · 997 Bytes
/
nuxt.config.ts
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
export default defineNuxtConfig({
runtimeConfig: {
//secretSauce: 'SECRET SAUCE NOT ADDED, CHECK FOR NUXT_SECRET_SAUCE',
secretSauce: process.env.NUXT_SECRET_SAUCE,
},
css: [
// Mechetle's global styling shit:
'~/assets/scss/main.scss'
],
modules: [
'@nuxt/image-edge',
],
generate: { fallback: '404.html' },
components: [
//global: true,
'~/components',
{ path: '~/components/layout', extensions: ['vue'] },
{ path: '~/components/layout/grid', extensions: ['vue'] },
{ path: '~/components/cards-widgets', extensions: ['vue'] },
{ path: '~/components/sections', extensions: ['vue'] }
],
routeRules: {
/* // Static page generated on-demand, revalidates in background
'/': { swr: true }, */
// Static page generated on-demand once for portfolio pages
'/portfolio/**': { static: true },
// Add cors headers
'/api/**': { cors: true},
},
experimental: {
viewTransition: true,
}
})