-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
117 lines (106 loc) · 3.04 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2024-08-27',
future: {
compatibilityVersion: 4,
},
// ssr: false,
css: [
'~/assets/css/base.css',
],
modules: [
'@vueuse/nuxt',
'@pinia/nuxt',
'@unocss/nuxt',
'@nuxthub/core',
'@nuxt/eslint',
'@nuxt/image',
'radix-vue/nuxt',
'@nuxtjs/seo',
'nuxt-auth-utils',
'nuxt-security',
],
devtools: {
enabled: true,
},
runtimeConfig: {
// eslint-disable-next-line node/prefer-global/process
galxeUpdateLeaderboardPassword: process.env.NUXT_GALXE_UPDATE_LEADERBOARD_PASSWORD,
},
experimental: {
// when using generate, payload js assets included in sw precache manifest
// but missing on offline, disabling extraction it until fixed
payloadExtraction: false,
renderJsonPayloads: true,
typedPages: true,
},
site: {
url: 'https://prestaking.nimiq.network/',
name: 'Nimiq Pre-staking',
description: 'Pre-staking is now closed. Thank you to everyone who pre-staked. Get Ready for the official migration Nov 19th!',
defaultLocale: 'en',
},
hub: {
kv: true,
cache: true,
},
security: {
// headers: {
// crossOriginEmbedderPolicy: process.env.NODE_ENV === 'development' ? 'unsafe-none' : 'require-corp', // To work with Nuxt DevTools
// },
headers: {
// The default value is 'same-origin', but that prevents the Hub popup from being communicated with.
crossOriginOpenerPolicy: 'same-origin-allow-popups',
contentSecurityPolicy: {
'frame-src': ['\'self\''],
'frame-ancestors': ['\'self\''],
'img-src': false,
},
xFrameOptions: 'SAMEORIGIN',
crossOriginEmbedderPolicy: 'unsafe-none',
},
},
watch: ['~/content'],
nitro: {
esbuild: {
options: {
target: 'esnext',
},
},
routeRules: {
'/prestaking': { redirect: { to: '/rewards', statusCode: 301 } },
'/pre-staking': { redirect: { to: '/rewards', statusCode: 301 } },
},
experimental: {
openAPI: true,
},
},
app: {
head: {
title: 'Nimiq Pre-staking',
viewport: 'width=device-width,initial-scale=1',
link: [
{ rel: 'icon', href: '/favicon.ico', sizes: 'any' },
{ rel: 'icon', type: 'image/icon', href: '/favicon.ico' },
{ rel: 'apple-touch-icon', href: '/apple-touch-icon.png' },
],
meta: [
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ name: 'description', content: 'Your Nimiq-Nuxt Template' },
{ name: 'apple-mobile-web-app-status-bar-style', content: 'black-translucent' },
{ name: 'theme-color', media: '(prefers-color-scheme: light)', content: 'white' },
{ name: 'theme-color', media: '(prefers-color-scheme: dark)', content: '#1f2348' },
],
},
pageTransition: { name: 'page', mode: 'out-in' },
},
features: {
// For UnoCSS
inlineStyles: false,
},
eslint: {
config: {
standalone: false,
},
},
})