Skip to content

Next.js (box) - internal server error #551

Description

@andriilive

The default next.js box build returns internal server error on a front, build passing with warnings

CleanShot 2024-09-21 at 16 38 33@2x

also, using start script with standalone output is outdated method, should be updated to something like below instead:

#copy the public folder to dist folder
cp -r public .next
cp -r .next/static ./next/standalone

#start the server
node .next/standalone/server.js

See:

Docker docs: https://nextjs.org/docs/app/building-your-application/deploying#docker-image
Output standalone docs: https://nextjs.org/docs/pages/api-reference/next-config-js/output#automatically-copying-traced-files

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions