Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Tim are going to remove target: 'serverless' option in nextJS #2414

jinqian1998 started this conversation in General
Discussion options

Hello guys,
I noticed vercel are going to remove the target: 'serverless' option in the future, in my understand, we are still using this option to generate a customize pack.
NextJS have a new feature called "output files trace", and a new option called outputStandalone. @iiroj ii have just create a PR using this option to compile the next, thanks his effort!
But for now, this option is still experimental. I don't know if vercel will remove it one day...
Any idea about deploying it in newer nextJS version?

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

I managed to get a PoC working, and the PR reflects that.

Basically the change means that instead of the lambda handler importing a serverless page and running its renderPage method, it has to spin up a Next.js server and directly handle the request.

The PoC is still missing all the sls-next features from around it, as I haven't had any time to move forward with it... maybe I should now pick up the effort, unless someone wants to take over. 😄

You must be logged in to vote
1 reply
Comment options

Thank you very much @iiroj .
We may change the deployment method if nextJS remove serverless target permanently.

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

AltStyle によって変換されたページ (->オリジナル) /