Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/web/buildingai-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"postinstall": "NUXT_BUILD_SSR=true NUXT_BUILD_ENV=development nuxt prepare --dotenv ../../../.env",
"build:ssr": "cross-env NODE_OPTIONS=--max-old-space-size=8192 NUXT_BUILD_SSR=true NUXT_BUILD_ENV=production nuxt build --dotenv ../../../.env && cross-env NUXT_BUILD_SSR=true node ../../../scripts/release.mjs",
"generate": "cross-env NODE_OPTIONS=--max-old-space-size=8192 NUXT_BUILD_SSR=false NUXT_BUILD_ENV=production nuxt generate --dotenv ../../../.env && cross-env NUXT_BUILD_SSR=false node ../../../scripts/release.mjs",
"generate:vercel": "cross-env NODE_OPTIONS=--max-old-space-size=8192 NUXT_BUILD_SSR=false NUXT_BUILD_ENV=production nuxt generate",
"dev": "NUXT_BUILD_SSR=false NUXT_BUILD_ENV=development nuxt dev --no-clear --dotenv ../../../.env",
"start:ssr": "node .output/server/index.mjs",
"start": "npx serve .output/public",
Expand Down
14 changes: 14 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"version": 2,
"framework": "nuxt",
"installCommand": "pnpm install",
"buildCommand": "pnpm --filter @buildingai/buildingai-ui generate:vercel",
"outputDirectory": "packages/web/buildingai-ui/.output/public",
"rewrites": [
{
"source": "/(.*)",
"destination": "/index.html"
}
]
}