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

Nitro modules to extend core #1788

Closed
1 task
Barbapapazes opened this issue Oct 4, 2023 · 1 comment · Fixed by #1789
Closed
1 task

Nitro modules to extend core #1788

Barbapapazes opened this issue Oct 4, 2023 · 1 comment · Fixed by #1789
Assignees
Labels
enhancement New feature or request

Comments

@Barbapapazes
Copy link
Member

Barbapapazes commented Oct 4, 2023

Describe the feature

Hello,

I'm currently asking myself how to share code between Nitro app.

Imagine, I'm building a server with auth on app A. I implement auth within code source A. Then, I'm building app B. I also need auth. How could I share code?

Currently, if I use Nuxt with Nitro, I can build a Nuxt module and modify directly the Nitro config to import some utils. If I use Nitro alone, it's not possible. In the same time, some features currently build for Nuxt could be only for Nitro and shared to other Nitro based framework.

I could create a simple JS package but I will not be able to provide great DX like auto-import, to update the config, inject routes or more...

What do you think of modules for Nitro like in Nuxt?

Additional information

  • Would you be willing to help implement this feature?
@pi0 pi0 added enhancement New feature or request and removed pending triage labels Oct 4, 2023
@pi0 pi0 self-assigned this Oct 4, 2023
@pi0
Copy link
Member

pi0 commented Oct 4, 2023

Thanks for making issue. As discussed before internally, this is something i had been thinking too mainly to unblock developing experiments and integrations out of Nitro core.

Currently, you can benefit from Nuxt/Nitro layers. Nitro-only apps, can extend from server/ directory.

@pi0 pi0 changed the title Nitro modules ? like Nuxt Nitro modules to extend core Oct 4, 2023
@pi0 pi0 closed this as completed in #1789 Oct 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants