Open wojtekmaj opened 1 year ago
try 'npx vercel' deploy if ur trying to deploy there. otherwise if you're using something like netlify, you could try just connecting the github repo to the project.
it seems like it's saying that you're basically doing too much at once, you could try swapping to npm, code-splitting, or install @next/bundle-analyzer the running 'ANALYZE=true yarn build' that should help determine an exact cause a bit easier. also 'yarn lint' can be a good tool.
Describe the bug
I can't for the life of me figure out how to deploy Next.js SSR app. Tried every possible combination, with standalone output or not:
Not only this uses Yarn 3 for build and Yarn 1 for deploy parts (completely fails to detect
.yarnrc.yml
which is supposed to detect modern version of Yarn), but ends up with an error:Tried this with custom build:
and:
and also:
and got:
or:
Expected behavior
Next.js application to deploy
Device info (if applicable):