deiucanta / chatpad

Not just another ChatGPT user-interface!
https://chatpad.ai
GNU Affero General Public License v3.0
1.36k stars 253 forks source link

Seems it only can deployed via docker #45

Open darth-pika-hu opened 1 year ago

darth-pika-hu commented 1 year ago

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 1 year ago

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 https://github.com/deiucanta/chatpad/issues/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 1 year ago

npm run build

I did, errors about token.

Supernova3339 commented 1 year ago

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 https://github.com/deiucanta/chatpad/issues/45#issuecomment-1518439535, or unsubscribe https://github.com/notifications/unsubscribe-auth/APESZJR7OVVVQL423VJY373XCMPW3ANCNFSM6AAAAAAXHNQ74M . You are receiving this because you commented.Message ID: @.***>

darth-pika-hu commented 1 year ago

@Supernova3339 I fixed the issue by adding an Environment variable during build: NODE_VERSION=18