-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.ts
147 lines (145 loc) · 3.39 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
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: [
"@nuxtjs/sanity",
"@nuxtjs/supabase",
"@vite-pwa/nuxt",
"@nuxt/devtools",
"nuxt-scheduler",
"@pinia/nuxt",
"@pinia-plugin-persistedstate/nuxt",
"frammer-nuxt",
"nuxt-purgecss",
"@vueuse/nuxt",
"nuxt-simple-sitemap",
"nuxt-simple-robots",
],
routeRules: {
// Homepage pre-rendered at build time
// "/": { prerender: true },
// Product page generated on-demand, revalidates in background
// "/products/**": { swr: true },
// Blog post generated on-demand once until next deploy
// "/blog/**": { isr: true },
// Admin dashboard renders only on client-side
// "/admin/**": { ssr: false },
// Add cors headers on API routes
"/api/**": { cors: true },
// Redirects legacy urls
// "/old-page": { redirect: "/new-page" },
"/game": { index: false },
"/profile": { index: false },
"/prizes": { index: false },
},
sitemap: {
enabled: true,
},
robots: {
enabled: true,
allow: ["/"],
disallow: ["/*"],
blockNonSeoBots: true,
},
plugins: [],
purgecss: {
enabled: false, // Always enable purgecss
safelist: [], // Add 'my-class' token to the safelist (e.g. .my-class)
},
sanity: {
projectId: "u678c0qn",
dataset: "production",
useCdn: true,
},
// runtimeConfig: {
// sanity: {
// token: process.env.NUXT_SANITY_TOKEN,
// },
// },
supabase: {},
pwa: {
strategies: "injectManifest",
filename: "sw.ts",
srcDir: "public",
workbox: {
cleanupOutdatedCaches: true,
navigateFallback: "/",
clientsClaim: true,
skipWaiting: true,
globPatterns: ["**/*.{js,css,html,png,svg,ico}"],
globIgnores: ["**/node_modules/**/*", "sw.ts", "workbox-*.js"],
},
devOptions: {
enabled: true,
navigateFallbackAllowlist: [/^\/$/],
type: "module",
},
manifest: {
name: "Kaufland Igra",
short_name: "Kaudland Igra",
theme_color: "#ffffff",
icons: [
{
src: "pwa-192x192.png",
sizes: "192x192",
type: "image/png",
},
{
src: "pwa-512x512.png",
sizes: "512x512",
type: "image/png",
},
{
src: "pwa-512x512.png",
sizes: "512x512",
type: "image/png",
purpose: "any maskable",
},
],
},
client: {
installPrompt: true,
},
},
pages: true,
css: [
// "primevue/resources/primevue.css",
// "primevue/resources/themes/lara-light-blue/theme.css",
// "primeflex/primeflex.css",
"primeicons/primeicons.css",
"~/assets/css/main.css",
],
build: {
// transpile: ["primevue"],
},
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
pinia: {
autoImports: [
// automatically imports `defineStore`
"defineStore", // import { defineStore } from 'pinia'
["defineStore", "definePiniaStore"], // import { defineStore as definePiniaStore } from 'pinia'
],
},
piniaPersistedstate: {
cookieOptions: {
sameSite: "strict",
},
storage: "cookies",
},
nitro: {
compressPublicAssets: true,
},
frammerNuxt: {
iframeUrl: "http://localhost:3333",
},
experimental: {
typedPages: true,
},
typescript: {
strict: true,
},
});