Skip to content

fix: configure Vercel preset and fix marketplace config loading#16

Merged
amondnet merged 1 commit intomainfrom
fix/vercel-deployment-marketplace-config
Oct 15, 2025
Merged

fix: configure Vercel preset and fix marketplace config loading#16
amondnet merged 1 commit intomainfrom
fix/vercel-deployment-marketplace-config

Conversation

@amondnet
Copy link
Copy Markdown
Contributor

Summary

  • Configure Vercel preset in nuxt.config.ts for proper serverless deployment
  • Fix marketplace API failing with ENOENT error in production
  • Move marketplace-sources.json to server directory and import directly instead of using file system APIs
  • Clean up turbo.json formatting

Problem

The marketplace API was failing in Vercel's serverless environment with:

Error: ENOENT: no such file or directory, open '/var/task/marketplace-sources.json'

This occurred because:

  1. No Vercel preset was configured, causing incorrect build output
  2. The API was trying to read marketplace-sources.json from the file system using process.cwd(), which differs between dev and production environments

Solution

  1. Added Vercel preset to ensure proper serverless build configuration
  2. Moved config file from public/ to server/ directory
  3. Changed from fs.readFile to direct import - this bundles the config at build time, making it available in any environment
  4. Removed trailing comma in turbo.json for consistency

Test Plan

  • Build completes successfully with Vercel preset
  • Config file is bundled in server output
  • No file system dependencies in serverless functions

- Add Vercel preset to nuxt.config.ts for proper serverless deployment
- Move marketplace-sources.json to server directory and use import instead of fs.readFile
- Fix ENOENT error in production by bundling config file at build time
- Remove trailing comma in turbo.json outputs array

This resolves the marketplace API failure in Vercel's serverless environment
where the working directory differs from development.
@vercel
Copy link
Copy Markdown

vercel Bot commented Oct 15, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
claude-code-plugins Ready Ready Preview Comment Oct 15, 2025 8:26pm

@amondnet amondnet merged commit c7865eb into main Oct 15, 2025
5 checks passed
@amondnet amondnet deleted the fix/vercel-deployment-marketplace-config branch October 15, 2025 20:27
@pleaseai pleaseai Bot mentioned this pull request Oct 15, 2025
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.

1 participant