-
Notifications
You must be signed in to change notification settings - Fork 1
/
nuxt.config.ts
47 lines (46 loc) · 1.07 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
// https://nuxt.com/docs/api/configuration/nuxt-config
import env from "./server/utils/env";
import { fileURLToPath } from "node:url";
export default defineNuxtConfig({
modules: [
"@nuxt/ui",
"@nuxtjs/supabase",
"@nuxt/eslint",
"nuxt-typed-router",
"@nuxt/image",
"@nuxtjs/tailwindcss",
],
devtools: { enabled: true },
supabase: {
url: env.SUPABASE_URL,
key: env.SUPABASE_ANON_KEY,
redirect: false,
redirectOptions: {
login: "/",
//TODO: give base url (http://localhost:3000/) as env var,
callback: "http://localhost:3000/board",
},
},
routeRules: {},
ui: {
icons: ["mdi", "material-symbols"],
},
typescript: {
tsConfig: {
compilerOptions: {
noUncheckedIndexedAccess: true,
},
},
},
nitro: {
typescript: {
tsConfig: {
compilerOptions: {
noUncheckedIndexedAccess: true,
},
},
},
alias: { db: fileURLToPath(new URL("./server/db", import.meta.url)) },
},
alias: { db: fileURLToPath(new URL("./server/db", import.meta.url)) },
});