-
Notifications
You must be signed in to change notification settings - Fork 45
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
NestApplication reloading after each GET request #50
Comments
I think with the repo here: #58 --- this can be reproduced and tested against as it is merely a symptom of this issue. |
let instance;
export const NestHandler: RequestAdapter<INestApplication> = async ({
app,
req,
res,
}) => {
if (!instance) {
await app.init();
instance = app.getHttpAdapter().getInstance();
}
// Todo: handle nest-fastify case
instance(req, res);
}; |
This was referenced Dec 28, 2022
closing along #67 merge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[this part is due to me forgetting
if (import.meta.env.PROD)
around the bootstrap function]to jump to the issue
![image](https://user-images.githubusercontent.com/28602203/176476298-01c52d9d-ae97-4f7c-8dfc-ad0d2bc3b15b.png)
As you can see I get all the init messages twice 馃.here is the
vite.config.ts
and my
main.ts
The rest of the application is the auto generated one
And those are the versions of the packages I used :
Thanks for that awesome plugin, hope I gave enough infos for you to debug ^^
The text was updated successfully, but these errors were encountered: