Skip to content

Commit cac2555

Browse files
committed
new config
1 parent 448cad7 commit cac2555

3 files changed

Lines changed: 25 additions & 0 deletions

File tree

apps/api/vercel.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"version": 2,
33
"buildCommand": "pnpm build:api",
4+
"outputDirectory": ".output",
45
"installCommand": "npm i -g pnpm && pnpm install",
56
"framework": "nuxtjs"
67
}

vercel.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"version": 2,
3+
"buildCommand": "pnpm build:web",
4+
"outputDirectory": "apps/web/dist",
5+
"installCommand": "pnpm install",
6+
"framework": "vite",
7+
"rewrites": [
8+
{
9+
"source": "/(.*)",
10+
"destination": "/index.html"
11+
}
12+
],
13+
"headers": [
14+
{
15+
"source": "/assets/(.*)",
16+
"headers": [
17+
{
18+
"key": "Cache-Control",
19+
"value": "public, max-age=31536000, immutable"
20+
}
21+
]
22+
}
23+
]
24+
}

0 commit comments

Comments
 (0)