digitalocean / sample-nextjs

⛵ App Platform sample Next.js application.
63 stars 111 forks source link

Fix ENOENT `./BUILD_ID` #55

Closed fumblehool closed 8 months ago

fumblehool commented 8 months ago

Problem

Running the code gives: Error: ENOENT: no such file or directory, open '/workspace/_static/BUILD_ID' However, BUILD_ID is in .next directory.

As per discussion here: https://github.com/vercel/next.js/discussions/55268 export doesn't work with next start.

This PR replaces next start with serve to fix this issue