Commit graph

9 commits

Author SHA1 Message Date
Ajax Davis
19884af03e fix: add build:web script to only build web and dependencies for Vercel 2026-01-03 14:18:28 +10:00
Ajax Davis
2a6d4c6c2e fix: use turbo filter for Vercel build to exclude playground/storybook 2026-01-03 14:11:19 +10:00
Ajax Davis
471fbba786 fix: exclude playground and storybook from Vercel build filter 2026-01-03 14:02:14 +10:00
Ajax Davis
0ba4e023ac fix(vercel): run install command from monorepo root to access workspace packages
**Problem:**
Vercel deployments were failing with:
```
ERR_PNPM_NO_MATCHING_VERSION_INSIDE_WORKSPACE: No matching version found for @tpmjs/eslint-config@* inside the workspace
```

The `installCommand` was running `pnpm install` from `apps/web`, which couldn't access workspace packages defined at the monorepo root.

**Solution:**
Change `installCommand` from `pnpm install` to `cd ../.. && pnpm install` to run from the monorepo root, matching the `buildCommand` behavior.

**Impact:**
- Vercel can now find and install all workspace packages
- Deployments should succeed
- All previous tool execution fixes can now actually deploy

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-30 05:07:28 +10:00
Ajax Davis
a5526222ad fix(vercel): configure Turborepo monorepo build for apps/web
- Change build filter from @tpmjs/web to @tpmjs/web...
- The ... suffix tells pnpm to build all dependencies first
- This fixes 'Module not found' errors for @tpmjs/env, @tpmjs/types, @tpmjs/ui
- Ensures workspace packages are built before web app tries to import them

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-28 21:15:18 +10:00
Ajax Davis
065196df6b fix(build): simplify Vercel build command
- Remove --webpack flag (incompatible with Turbo)
- Remove functions config (not working as expected)
- Use direct pnpm build command

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-28 20:48:51 +10:00
Ajax Davis
8281f8fb5b fix(build): disable Turbopack for Vercel deployment
- Add --webpack flag to build command to use Webpack instead of Turbopack
- Add maxDuration export to health route
- This should ensure API routes are properly detected and deployed as serverless functions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-28 20:46:53 +10:00
Ajax Davis
748ca4d19c fix(api): configure Vercel functions for API routes with maxDuration
- Add explicit functions configuration to vercel.json
- Set maxDuration to 60 seconds for all API routes
- This ensures Vercel properly detects and deploys API routes as serverless functions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-28 20:43:31 +10:00
Ajax Davis
cc6c8243ed fix(vercel): configure Turborepo monorepo build for apps/web
- Add vercel.json to apps/web with Turborepo build command
- Configure build to use turbo build --filter=@tpmjs/web
- Ensures Vercel properly detects and builds Next.js app in monorepo structure
- Fixes API routes timing out due to incorrect project root detection

This resolves the issue where Vercel wasn't detecting the Next.js app
inside apps/web/, causing API routes to never be built as serverless functions.

Note: You must also set Root Directory to "apps/web" in Vercel dashboard:
Project Settings > General > Root Directory

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-28 05:58:10 +10:00