-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
70 lines (69 loc) · 1.56 KB
/
nuxt.config.ts
File metadata and controls
70 lines (69 loc) · 1.56 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import tailwindcss from "@tailwindcss/vite";
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: "2026-02-01",
css: ["~/assets/css/tailwind.css"],
devtools: { enabled: true },
nitro: {
preset: "cloudflare_module",
cloudflare: {
deployConfig: true,
nodeCompat: true,
wrangler: {
d1_databases: [],
},
},
cloudflareDev: {
configPath: "./wrangler.dev.jsonc",
},
},
vite: {
optimizeDeps: {
include: ["@vue/devtools-core", "@vue/devtools-kit"],
},
plugins: [tailwindcss()],
},
modules: [
"@nuxt/content",
"@nuxt/eslint",
"@nuxt/fonts",
"@nuxt/icon",
"@nuxt/image",
"@nuxt/scripts",
"nitro-cloudflare-dev",
],
$env: {
production: {
nitro: {
cloudflare: {
wrangler: {
d1_databases: [
{
binding: "DB",
database_id: "cb7d337c-9e00-40e2-b597-00d7b8577409",
database_name: "affirm",
migrations_dir: "server/database/migrations",
},
],
},
},
},
},
staging: {
nitro: {
cloudflare: {
wrangler: {
d1_databases: [
{
binding: "DB",
database_id: "1bb3778c-e922-4edc-8f86-dd25ce217b33",
database_name: "affirm-staging",
migrations_dir: "server/database/migrations",
},
],
},
},
},
},
},
});