-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
45 lines (45 loc) · 1.15 KB
/
nuxt.config.ts
File metadata and controls
45 lines (45 loc) · 1.15 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
export default defineNuxtConfig({
compatibilityDate: "2024-04-03",
devtools: { enabled: true },
runtimeConfig: {
public: {
baseUrl: process.env.BASE_URL,
},
private: {
apiSecretToken: process.env.API_SECRET_TOKEN,
apiKey: process.env.GOOGLE_GENERATIVE_AI_API_KEY,
},
cloudinaryUrl: process.env.CLOUDINARY_URL,
cloudinaryCloudName: process.env.CLOUDINARY_CLOUD_NAME,
cloudinaryApiKey: process.env.CLOUDINARY_API_KEY,
cloudinaryApiSecret: process.env.CLOUDINARY_API_SECRET,
},
supabase: {
url: process.env.SUPABASE_URL,
key: process.env.SUPABASE_KEY,
serviceKey: process.env.SUPABASE_SERVICE_KEY,
redirect: false,
},
css: ["@unocss/reset/tailwind.css"],
modules: ["@unocss/nuxt", "@nuxtjs/supabase"],
routeRules: {
"/": { prerender: true },
"/api/**": {
cors: true,
headers: {
"Access-Control-Allow-Origin": "http://localhost:3000",
"Access-Control-Allow-Methods": "GET, POST, PATCH",
"Access-Control-Allow-Headers":
"Content-Type, Authorization, X-API-SECRET",
},
},
},
nitro: {
prerender: {
ignore: ["/opengraph", "/404", "/200"],
},
},
experimental: {
payloadExtraction: false,
},
});