-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
206 lines (205 loc) · 5.95 KB
/
Copy pathnuxt.config.ts
File metadata and controls
206 lines (205 loc) · 5.95 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
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
// https://nuxt.com/docs/api/configuration/nuxt-config
import svgLoader from 'vite-svg-loader'
import { languageLocales } from './constants'
export default defineNuxtConfig({
routeRules: {
// Homepage pre-rendered at build time
'/': { prerender: true },
// calendar page generated on demand, revalidates in background, cached until API response changes
'/calendar': { swr: true },
},
app: {
baseURL: '/',
head: {
htmlAttrs: {
lang: 'en-US',
},
title: 'Wit/Oracle: The most powerful oracle, provably.',
meta: [
{ charset: 'utf-8' },
{
name: 'viewport',
content: 'viewport-fit=cover, width=device-width, initial-scale=1',
},
{
name: 'title',
content: 'Wit/Oracle: The most powerful oracle, provably.',
},
{
name: 'description',
content:
'Secure your smart contracts and dApps with the Wit/Oracle: powered by Proof-of-Stake, and offering unrivalled reliability and censorship resistance.',
},
{
name: 'twitter:title',
content: 'Wit/Oracle: The most powerful oracle, provably.',
},
{
name: 'twitter:description',
content:
'Secure your smart contracts and dApps with the Wit/Oracle: powered by Proof-of-Stake, and offering unrivalled reliability and censorship resistance.',
},
{
name: 'twitter:image',
content: '/meta-image.png',
},
{
name: 'twitter:image:alt',
content: 'Wit/Oracle',
},
{
property: 'og:title',
content: 'Wit/Oracle: The most powerful oracle, provably.',
},
{
property: 'og:description',
content:
'Secure your smart contracts and dApps with the Wit/Oracle: powered by Proof-of-Stake, and offering unrivalled reliability and censorship resistance.',
},
{
property: 'og:image',
content: '/meta-image.png',
},
{
property: 'og:image:secure_url',
content: '/meta-image.png',
},
{
property: 'og:image:alt',
content: 'Wit/Oracle',
},
],
link: [
{
rel: 'preload stylesheet',
href: 'https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap',
as: 'style',
type: 'text/css',
},
{ rel: 'apple-touch-icon', type: 'image/x-icon', href: '/favicon.ico' },
{
rel: 'icon',
sizes: '180x180',
href: '/apple-touch-icon.png',
type: 'image/png',
},
{
rel: 'icon',
sizes: '32x32',
href: '/favicon-32x32.png',
type: 'image/png',
},
{
rel: 'icon',
sizes: '16x16',
href: '/favicon-16x16.png',
type: 'image/png',
},
{ rel: 'icon', href: '/favicon.ico', type: 'image/x-icon' },
{ rel: 'manifest', href: '/site.webmanifest' },
{ rel: 'mask-icon', href: '/safari-pinned-tab.svg', color: '2D2C39' },
{ rel: 'shortcut icon', href: '/favicon.ico' },
],
script: [
{
textContent: `
<!-- Twitter conversion tracking base code -->
<script>
!function(e,t,n,s,u,a){e.twq||(s=e.twq=function(){s.exe?s.exe.apply(s,arguments):s.queue.push(arguments);
},s.version='1.1',s.queue=[],u=t.createElement(n),u.async=!0,u.src='https://static.ads-twitter.com/uwt.js',
a=t.getElementsByTagName(n)[0],a.parentNode.insertBefore(u,a))}(window,document,'script');
twq('config','ovifm');
</script>
<!-- End Twitter conversion tracking base code -->`,
type: 'text/javascript',
},
],
},
},
runtimeConfig: {
public: {
calendarApiUrl: process.env.CALENDAR_API_URL,
},
},
devtools: { enabled: true },
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
modules: [
'@nuxtjs/i18n',
'@nuxtjs/color-mode',
'@nuxtjs/device',
'nuxt-security',
'nuxt-gtag',
],
security: {
headers: {
contentSecurityPolicy: {
'form-action': ["'self'", 'https://*.list-manage.com'],
'img-src': [
"'self'",
'data:',
'https://cloudinary-marketing-res.cloudinary.com',
'https://www.google.es/ads/ga-audiences',
],
},
},
},
gtag: {
id: 'GTM-ND5BQG9',
},
colorMode: {
preference: 'light', // default value of $colorMode.preference
fallback: 'light', // fallback value if not system preference found
hid: 'nuxt-color-mode-script',
globalName: '__NUXT_COLOR_MODE__',
componentName: 'ColorScheme',
classPrefix: '',
classSuffix: '',
storageKey: 'nuxt-color-mode',
},
i18n: {
lazy: true,
strategy: 'prefix_except_default',
defaultLocale: 'en',
detectBrowserLanguage: {
useCookie: true,
cookieKey: 'i18n_redirected',
redirectOn: 'root',
},
locales: Object.values(languageLocales),
},
css: ['~/assets/styles/main.scss', '~/assets/styles/tailwind.css'],
components: [{ path: '~/components', pathPrefix: false }],
compatibilityDate: '2024-12-17',
vite: {
plugins: [
svgLoader({
svgoConfig: {
plugins: [
{
name: 'preset-default',
params: {
overrides: {
removeViewBox: false,
cleanupIds: false,
},
},
},
],
},
}),
],
css: {
preprocessorOptions: {
scss: {
additionalData: '@use "~/assets/styles/colors.scss" as *;',
api: 'modern-compiler',
},
},
},
},
})