fix: configure Vercel preset and fix marketplace config loading#16
Merged
fix: configure Vercel preset and fix marketplace config loading#16
Conversation
- 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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
nuxt.config.tsfor proper serverless deploymentmarketplace-sources.jsonto server directory and import directly instead of using file system APIsturbo.jsonformattingProblem
The marketplace API was failing in Vercel's serverless environment with:
This occurred because:
marketplace-sources.jsonfrom the file system usingprocess.cwd(), which differs between dev and production environmentsSolution
public/toserver/directoryTest Plan