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
Add option to switch to Fastify #3
Comments
I've tried to use fastify as explained in https://docs.nestjs.com/techniques/performance, wihout success : Always get an error "[PackageLoader] The "fastify" package is missing. Please, make sure to install this library ($ npm install fastify) to take advantage of FastifyAdapter." Even if I manually load fastify package in main.ts. Examples:
Maybe it will be usefull to be able to pass the fastify instance to the adapter : const fastify = require('fastify');
enableProdMode();
async function bootstrap() {
const app = await NestFactory.create(ApplicationModule, new FastifyAdapter({
instance: fastify
}));
app.enableCors({
methods: 'GET',
maxAge: 3600,
});
await app.listen(4000);
}
bootstrap().catch(err => console.error(err)); |
Anyone has been able to do this, I am still getting this error. |
Will fastify support be an option in the future? |
@kamilmysliwiec I can push it further and try to create a pull request after the answer in angular/universal#1871 |
@Sikora00 sounds great! |
@kamilmysliwiec things get complicated angular/universal#1892 |
If you have some time, that would be great! Feel free to fork this repository (+ ping users here once it's available - if you want). Since Angular doesn't plan to publish this under the official organization account, we won't be doing this either. |
@Sikora00 |
@invaderb no I haven't. I don't think I could handle maintenance by myself. |
I'm submitting a...
Current behavior
Expected behavior
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Better cold-start times when running in serverless environment
Environment
The text was updated successfully, but these errors were encountered: