forked from throwoutofcoffeeexception/openviktor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvercel.json
More file actions
23 lines (23 loc) · 739 Bytes
/
vercel.json
File metadata and controls
23 lines (23 loc) · 739 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
"installCommand": "bun install",
"buildCommand": "bun run --filter @openviktor/web build",
"outputDirectory": "apps/web/dist",
"rewrites": [
{ "source": "/slack/:path*", "destination": "https://api.openviktor.com/slack/:path*" },
{ "source": "/api/:path*", "destination": "https://api.openviktor.com/api/:path*" },
{ "source": "/((?!slack/|api/).*)", "destination": "/index.html" }
],
"headers": [
{
"source": "/api/(.*)",
"headers": [
{ "key": "Access-Control-Allow-Origin", "value": "*" },
{ "key": "Access-Control-Allow-Methods", "value": "GET, POST, PUT, DELETE, OPTIONS" },
{
"key": "Access-Control-Allow-Headers",
"value": "Content-Type, Authorization, X-Workspace-Id"
}
]
}
]
}