Seems it only can deployed via docker
darth-pika-hu opened this issue · 4 comments
darth-pika-hu commented
Seems it only supports docker deployment, am I correct?
I tried Vercel and Netlify. Both report errors and failed to build.
Netlify error:
Error: The directory "/opt/build/repo/.next" does not contain a Next.js production build. Perhaps the build command was not run, or you specified the wrong publish directory.
Vercel error:
Error: The file "/vercel/path0/.next/routes-manifest.json" couldn't be found. This is often caused by a misconfiguration in your project.
In addition, Cloudflare Pages also report errors.
Supernova3339 commented
add the nextjs build command to your custom deployment command
…On Fri, Apr 21, 2023 at 11:30 PM Darth Pika ***@***.***> wrote:
I tried Vercel and Netlify. Both reports errors and failed to build.
Error message
4:27:15 PM: Error: The directory "/opt/build/repo/.next" does not contain a Next.js production build. Perhaps the build command was not run, or you specified the wrong publish directory.
Error: The file "/vercel/path0/.next/routes-manifest.json" couldn't be
found. This is often caused by a misconfiguration in your project.
—
Reply to this email directly, view it on GitHub
<#45>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APESZJSVT5EFIBOD4KWGLYDXCMKDFANCNFSM6AAAAAAXHNQ74M>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
darth-pika-hu commented
npm run build
I did, errors about token.
Supernova3339 commented
ah, I'll look into making a nixpacks file for vercel
…On Sat, Apr 22, 2023 at 12:18 AM Darth Pika ***@***.***> wrote:
npm run build
I did, errors about token.
—
Reply to this email directly, view it on GitHub
<#45 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APESZJR7OVVVQL423VJY373XCMPW3ANCNFSM6AAAAAAXHNQ74M>
.
You are receiving this because you commented.Message ID:
***@***.***>
darth-pika-hu commented
@Supernova3339 I fixed the issue by adding an Environment variable during build: NODE_VERSION=18