-
-
Notifications
You must be signed in to change notification settings - Fork 44
/
nuxt.config.js
96 lines (83 loc) · 2.11 KB
/
nuxt.config.js
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
90
91
92
93
94
95
96
import { laravel } from './manifest'
export default defineNuxtConfig({
// Target: https://go.nuxtjs.dev/config-target
target: 'static',
ssr: true,
site: {
url: 'https://artisan.page',
indexable: true,
},
app: {
head: {
htmlAttrs: {
lang: 'en',
},
charset: 'utf-8',
viewport: 'width=device-width, initial-scale=1',
titleTemplate: 'Laravel v%s - The Laravel Artisan Cheatsheet',
link: [
{
rel: 'icon',
type: 'image/x-icon',
href: 'https://artisan.page/favicon.ico',
},
{
rel: 'style',
href: 'https://fonts.bunny.net/css2?family=Nunito+Sans:wght@400;500;600;700;800&display=swap',
},
],
script: [
process.env.NODE_ENV === 'production' && {
src: 'https://cdn.usefathom.com/script.js',
'data-site': 'FMUFNTYW',
'data-canonical': false,
defer: 'defer',
},
],
},
},
postcss: {
plugins: {
'tailwindcss/nesting': {},
tailwindcss: {},
autoprefixer: {},
},
},
// Global CSS: https://go.nuxtjs.dev/config-css
css: ['~/assets/css/main.css'],
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [],
// Modules: https://go.nuxtjs.dev/config-modules
modules: [
// https://go.nuxtjs.dev/axios
// '@nuxtjs/axios',
// '@nuxtjs/redirect-module',
'@nuxtjs/tailwindcss',
'@nuxtjs/color-mode',
'@nuxtjs/sitemap',
'@nuxtjs/robots',
'@nuxtjs/web-vitals',
'@nuxt/image',
],
// Axios module configuration: https://go.nuxtjs.dev/config-axios
axios: {},
// Build Configuration: https://go.nuxtjs.dev/config-build
build: {},
sitemap: {
cacheMaxAgeSeconds: 360, // 1 hour
sources: [
'/api/__sitemap__/urls'
]
},
colorMode: {
preference: 'system',
fallback: 'light',
hid: 'nuxt-color-mode-script',
globalName: '__NUXT_COLOR_MODE__',
componentName: 'ColorScheme',
classPrefix: '',
classSuffix: '',
storageKey: 'nuxt-color-mode',
},
compatibilityDate: '2024-10-16',
})