Skip to content

Deplopyment Error on Vercel: Cannot find module '/vercel/workpath0/.next/server/scripts/build-rss.js' #19256

Discussion options

You must be logged in to vote

The solution is to use serverless instead of server as Vercel is Serverless :)

So build:rss becomes:

{
 "build:rss": "node ./.next/serverless/scripts/build-rss.js",
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Nevoss
Comment options

Answer selected by deadcoder0904
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants