Skip to content

Conversation

@ungden
Copy link

@ungden ungden commented Dec 5, 2025

  • Add vercel.json to specify correct build command and output directory
  • Set outputDirectory to "public/web" where static files are generated
  • This fixes the "No Output Directory named web found" error on Vercel

claude added 10 commits December 5, 2025 00:39
- Add vercel.json to specify correct build command and output directory
- Set outputDirectory to "public/web" where static files are generated
- This fixes the "No Output Directory named web found" error on Vercel
- Change buildCommand from script reference to direct command
- Use 'cd packages/web/buildingai-ui && pnpm run generate' instead of 'pnpm run build:web'
- Add --frozen-lockfile to installCommand for better reliability
- This fixes the "Missing script: build:web" error in Vercel
- Run nuxt generate directly without release.mjs script
- Change outputDirectory to packages/web/buildingai-ui/.output/public
- Remove .env file dependency (use Vercel environment variables)
- Set NUXT_BUILD_SSR=false and NUXT_BUILD_ENV=production inline
- This fixes build exit code 1 error by avoiding release script in Vercel
- Use 'pnpm --filter @buildingai/buildingai-ui run generate'
- This properly runs the generate script in the monorepo context
- Output directory set to 'public/web' where release.mjs copies files
- Simplified installCommand back to 'pnpm install'
- This approach works with pnpm workspaces and Vercel's build environment
- Add build step for all dependencies of buildingai-ui package
- Use pnpm filter with ^... to build all workspace dependencies first
- Command: pnpm --filter @buildingai/buildingai-ui^... build
- Then run generate to build the Nuxt app
- This fixes TypeScript errors about missing @buildingai/types, @buildingai/constants, etc.
- Add build:vercel script that runs nuxt generate without --dotenv flag
- Use pnpm exec for cross-env to ensure it's available in PATH
- Update vercel.json to use new build:vercel script
- This fixes the issue where .env file is required but not available on Vercel
- Ensures public/web directory is created by release.mjs script
…ssues

- Remove dependency on package.json build:vercel script
- Inline entire build command directly in vercel.json
- Ensures command runs correctly regardless of pnpm context
- Build flow: dependencies build -> nuxt generate -> release script
- Create build-vercel.sh with full build logic
- Vercel buildCommand has 256 character limit
- Script handles: workspace deps build, nuxt generate, release
- Update vercel.json to use: bash build-vercel.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants