Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standalone Nest application #95

Open
yakovlev-alexey opened this issue Nov 2, 2022 · 1 comment
Open

Standalone Nest application #95

yakovlev-alexey opened this issue Nov 2, 2022 · 1 comment

Comments

@yakovlev-alexey
Copy link
Contributor

From #92:

@kyle-mccarthy
Part of me wonders if setting up nest as a standalone application and exposing a router from nest-next to handle all the api routes would be best.

@yakovlev-alexey
Setting up Nest as a standalone application seems like a cool idea. Though I think it offers an entirely different approach to Nest and Next integration. Want to play around with this idea a bit and see how it could work.

In this particular case perfomance could also be important. From my experience debugging Next it strongly leans toward serverless. Even when running as a server (detached or not) it will dynamically require built pages (Next emits both server and client bundles for each page with server being the larger one with SSR methods and their deps). Running standalone could end up creating a new Nest standalone app for each request.

That might have changed since my testing but I believe Next maintainers are very opinionated on Next usage and as a commercial company try to sell Vercel deployment by not introducing features that would help using Next effectively outside Vercel.

Monkey-patching Next detached server could work...

@ax-at
Copy link

ax-at commented May 11, 2024

@yakovlev-alexey Any update on this approach?

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

No branches or pull requests

2 participants