Skip to content

feat(nest): add Fastify support to NestJS application generator #30894

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

vrxj81
Copy link

@vrxj81 vrxj81 commented Apr 27, 2025

Current Behavior

The NestJS application generator only scaffolds applications with Express as the underlying HTTP framework. Developers who want to use Fastify must manually modify the generated project.

Expected Behavior

Developers can now use a --framework option when generating a NestJS application to select either express (default) or fastify.
The generated project will be preconfigured with the correct platform package (@nestjs/platform-express or @nestjs/platform-fastify) and appropriate main.ts bootstrap code.

Example usage

nx g @nx/nest:application my-app --framework fastify

Related Issue(s)

Fixes #30893

@vrxj81 vrxj81 requested review from a team as code owners April 27, 2025 15:34
@vrxj81 vrxj81 requested a review from ndcunningham April 27, 2025 15:34
Copy link

vercel bot commented Apr 27, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview Apr 27, 2025 5:01pm

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

Successfully merging this pull request may close these issues.

2 participants