Closed sennett closed 1 year ago
Hey! just remove target
it's not used, we just need to have output
configured.
I will fix documentation in a minute, sorry for confusion.
Fixed in v3.20.4
Thanks! In addition, for me Next 12 didn't output a .next/standalone
directory, and so the next step npx --package @sladg/nextjs-lambda next-utils pack
failed. I have just updated to Next 13 and it is outputting the .next/standalone
as expected. The docs mention Next 12 - I made a PR here specifying Next 13: https://github.com/sladg/nextjs-lambda/pull/53.
Next13 works fine for you however 12 did not output the directory? 🤔 that's sus
It was Next 12.1 - maybe there was something messed up in my yarn.lock.
Thanks for this project. I'm having trouble running
next build
withtarget: 'standalone'
. next.config.js is:When I run
next built
I get the following output:Error: Specified target is invalid. Provided: "standalone" should be one of server, serverless, experimental-serverless-trace
Running
npx --package @sladg/nextjs-lambda next-utils pack
without this results inProcess failed with error: Error: Folder: /Users/<project root>/.next/standalone does not exist!
From the next docs it seems we can have
output: 'standalone',
? But this doesn't seem to work either, or where am I going wrong? Thanks.