-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
67 lines (61 loc) · 1.55 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: [
"@nuxt/devtools",
"@nuxt/ui",
"@nuxt/image",
"@nuxtjs/supabase",
"@pinia/nuxt",
"nuxt-icon",
],
routeRules: {
'/api/**': { cors: true }
},
pinia: {
storesDirs: ['./stores/**',],
},
colorMode: {
preference: "system", // default value of $colorMode.preference
fallback: "dark", // fallback value if not system preference found
hid: "nuxt-color-mode-script",
globalName: "__NUXT_COLOR_MODE__",
componentName: "ColorScheme",
classPrefix: "",
classSuffix: "",
storageKey: "nuxt-color-mode",
},
// Defaults options
tailwindcss: {
cssPath: "~/assets/css/tailwind.css",
configPath: "tailwind.config",
exposeConfig: false,
exposeLevel: 2,
injectPosition: "first",
viewer: true,
},
ui: { icons: ["mdi", "logos", "material-symbols"] },
image: {
cloudinary: {
baseURL: "https://res.cloudinary.com/ddc0cce3m/image/upload/v1688160841/animalGod/",
},
},
components: [
{ path: "~/components/MeetThem", prefix: "MeetThem" },
"~/components",
],
supabase: {
redirectOptions: {
login: '/login',
callback: '/confirm',
exclude: ["/", "/login", "/profile/update", "/signup", "/signup-shelter", "/404", "/forgot-password", "/meet-them", "/about-adoption", "/successful-cases", "/tips", "/meet-them/*"],
}
},
devtools: {
enabled: true
},
runtimeConfig: {
public: {
bucketUrl: process.env.BUCKET_URL,
}
}
});