production files
Unanswered
Akita posted this in #help-forum
AkitaOP
what files should i upload to my vps after npm run build?
4 Replies
did you go through this: https://nextjs.org/docs/app/getting-started/deploying
AkitaOP
i got this error:
⨯ Failed to load next.config.ts, see more info here https://nextjs.org/docs/messages/next-config-error
Error: Cannot find module './utils/server/server.fns'
I uploaded .next prisma next-env.d.ts tsconfig.json prisma.config.ts package.json public icons next.config.ts postcss.config.mjs .env
⨯ Failed to load next.config.ts, see more info here https://nextjs.org/docs/messages/next-config-error
Error: Cannot find module './utils/server/server.fns'
I uploaded .next prisma next-env.d.ts tsconfig.json prisma.config.ts package.json public icons next.config.ts postcss.config.mjs .env
just upload all the codebase, and do
npm run build + npm run startor you can do standalone method: https://nextjs.org/docs/app/api-reference/config/next-config-js/output#automatically-copying-traced-files