feat: update build output directory to 'dist' in package.json and set outputDirectory in vercel.json
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "bun build src/index.ts --target=bun --outdir=api",
|
"build": "bun build src/index.ts --target=bun --outdir=dist",
|
||||||
"start": "bun run src/index.ts",
|
"start": "bun run src/index.ts",
|
||||||
"dev": "bun --hot run src/index.ts",
|
"dev": "bun --hot run src/index.ts",
|
||||||
"test": "bun test",
|
"test": "bun test",
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://openapi.vercel.sh/vercel.json",
|
"$schema": "https://openapi.vercel.sh/vercel.json",
|
||||||
"bunVersion": "1",
|
"bunVersion": "1",
|
||||||
|
"outputDirectory": "dist",
|
||||||
"rewrites": [{ "source": "/(.*)", "destination": "/api/relay" }]
|
"rewrites": [{ "source": "/(.*)", "destination": "/api/relay" }]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user