-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
57 lines (57 loc) · 1.67 KB
/
Copy pathnuxt.config.ts
File metadata and controls
57 lines (57 loc) · 1.67 KB
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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: "2025-05-15",
devtools: { enabled: true },
ssr: false,
modules: ["@wagmi/vue/nuxt"],
runtimeConfig: {
public: {
projectId: "cfa4eb2b3ecc4d91b3a43cfd19c91fda",
},
},
vueQuery: {
// useState key used by nuxt for the vue query state.
// If you only want to import some functions, specify them here.
// You can pass false or an empty array to disable this feature.
// default: ["useQuery", "useQueries", "useInfiniteQuery", "useMutation", "useIsFetching", "useIsMutating", "useQueryClient"]
autoImports: ["useQuery"],
// Pass the vue query client options here ...
queryClientOptions: {
defaultOptions: {
queries: {
refetchOnMount: "always",
gcTime: 24 * (60 * (60 * 1000)), // hours, (minutes * (seconds * milliseconds)) = hours
staleTime: 24 * (60 * (60 * 1000)), // hours, (minutes * (seconds * milliseconds)) = hours
refetchOnWindowFocus: true,
refetchOnReconnect: true,
retry: 3,
},
}, // default
},
// Pass the vue query plugin options here ....
vueQueryPluginOptions: {},
},
nitro: {
preset: "cloudflare-pages",
prerender: {
autoSubfolderIndex: false,
},
esbuild: {
options: {
target: "es2020",
logLevel: "info",
logLimit: 0,
treeShaking: true,
legalComments: "none",
},
},
routeRules: {
"/": {
headers: {
"Permissions-Policy":
'clipboard-write=(self "https://staging-app.mc2.fi")',
},
},
},
},
});