-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
71 lines (65 loc) · 1.72 KB
/
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
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
// https://nuxt.com/docs/api/configuration/nuxt-config
import { resolve } from 'node:path'
export default defineNuxtConfig({
compatibilityDate: '2024-09-13',
future: { compatibilityVersion: 4 },
devtools: { enabled: true },
app: {
head: {
link: [
// See https://example-styles.netlify.app/.
{
rel: 'preload',
href: 'https://example-styles.netlify.app/fonts/PacaembuVar-latin.woff2',
as: 'font',
type: 'font/woff2',
crossorigin: '',
},
{
rel: 'preload',
href: 'https://example-styles.netlify.app/fonts/MulishVar-latin.woff2',
as: 'font',
type: 'font/woff2',
crossorigin: '',
},
{
rel: 'stylesheet',
href: 'https://example-styles.netlify.app/styles.css',
},
{
rel: 'stylesheet',
href: 'https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@latest/build/styles/default.min.css',
},
],
script: [
{
src: 'https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@latest/build/highlight.min.js',
},
// TODO(serhalp) Check if this is really the idiomatic way to do this...
{
children: 'hljs.highlightAll();',
},
],
},
},
routeRules: {
'/': {
prerender: true,
},
'/run/**': {
// Cache each run page, since they're immutable other than new deploys
headers: {
'cache-control': 'public, max-age=0, must-revalidate',
},
},
},
modules: ['@nuxt/eslint', '@nuxt/test-utils/module'],
eslint: {
config: {
stylistic: true,
},
},
alias: {
'~server': resolve(__dirname, './server'),
},
})