mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 20:59:15 +02:00
feat: Improve building, make Vite files served statically in prod
This commit is contained in:
parent
241be497bd
commit
4924fa6d85
3 changed files with 37 additions and 12 deletions
|
|
@ -35,10 +35,11 @@
|
|||
"dev": "bun run index.ts",
|
||||
"vite:dev": "bunx --bun vite pages",
|
||||
"vite:build": "bunx --bun vite build pages",
|
||||
"start": "NODE_ENV=production bun run index.ts & bunx --bun vite preview pages --port 5173",
|
||||
"start": "NODE_ENV=production bun run dist/index.js --prod",
|
||||
"migrate-dev": "bun prisma migrate dev",
|
||||
"migrate": "bun prisma migrate deploy",
|
||||
"lint": "eslint --config .eslintrc.cjs --ext .ts .",
|
||||
"prod-build": "bunx --bun vite build pages && bun run build.ts",
|
||||
"prisma": "DATABASE_URL=$(bun run prisma.ts) bunx prisma",
|
||||
"generate": "bun prisma generate",
|
||||
"benchmark:timeline": "bun run benchmarks/timelines.ts",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue