-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
51 lines (47 loc) · 909 Bytes
/
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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
typescript: {
shim: false,
strict: true,
tsConfig: {
compilerOptions: {
noUnusedLocals: false,
downlevelIteration: true,
},
},
},
modules: ['@nuxtjs/tailwindcss', '@nuxtjs/supabase', '@pinia/nuxt'],
runtimeConfig: {
public: {
redirectUrl:
process.env.NODE_ENV === 'production'
? 'https://zingio.vercel.app'
: 'http://localhost:3000',
},
},
routeRules: {
'/auth/**': {
ssr: false,
},
'/account/**': {
ssr: false,
},
'/': {
ssr: false,
},
'/api/**': {
cors: true,
},
},
app: {
head: {
titleTemplate: '%s - zingio',
link: [
{
rel: 'icon',
href: 'data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>💬</text></svg>',
},
],
},
},
})