-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
47 lines (46 loc) · 1.36 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
import { defineNuxtConfig } from 'nuxt/config'
export default defineNuxtConfig({
nitro: {
prerender: {
autoSubfolderIndex: false
}
},
devtools: { enabled: false },
routeRules: {
'/': { redirect: '/forum' },
'/survey': { redirect: 'https://docs.google.com/forms/d/e/1FAIpQLSef26aRdhF3lF7ZPSDSh37VadOF8WTFTuetCS0RsbzEUtLnSg/viewform?usp=sf_link' },
'/?error=server_error&error_code=500&error_description=Database+error+saving+new+user': { redirect: '/' },
'/callback': { redirect: 'https://nuzckkykittqpmxxmzlk.supabase.co/auth/v1/callback' },
},
modules: [
'@nuxtjs/supabase',
'@nuxtjs/tailwindcss',
'@nuxtjs/color-mode',
"@nuxtjs/seo",
"@nuxt/content",
"@nuxt/image",
'nuxt-icon',
],
colorMode: {
classSuffix: '',
preference: 'system',
fallback: 'dark'
},
css: ['@/assets/css/main.css'],
supabase: {
url: process.env.SUPABASE_URL,
key: process.env.SUPABASE_ANON_KEY,
redirectOptions: {
login: '/login',
callback: '/callback',
exclude: ['/forum', '/forum/tutorial','/cluburi', '/cluburi/*', '/evenimente', '/terms', '/policy', '/work-in-progress', '/about', '/api/get/topics'],
}
},
extends: '@nuxt-themes/typography',
site: {
url: process.env.SITE_URL,
name: 'Cuzanym',
description: 'Agile - Skills for the future',
defaultLocale: 'ro',
},
})