-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[Documentation Request] Extending the HTML template #21593
Labels
Comments
Hebilicious
changed the title
[Documenation Request] Extending the HTML template
[Documentation Request] Extending the HTML template
Jun 15, 2023
A PR would be very welcome ❤️ 🙏 |
BTW is it me or don't we have any types for nitro hooks ? |
They exist in nitro. Worth checking the cause if the types aren't flowing through |
There is a export interface NitroApp {
h3App: H3App;
router: Router;
// TODO: Type hooks and allow extending
hooks: Hookable;
localCall: ReturnType<typeof createCall>;
localFetch: ReturnType<typeof createLocalFetch>;
} https://github.com/unjs/nitro/blob/88b4e11854c6a84c764bf64329f8e50a946b03b8/src/runtime/app.ts#L29 |
8 tasks
8 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the feature
How to extend the HTML template should be explained clearly in the docs, with example for the most common things.
We should document how to use the following Nitro hooks at the same time.
This would fix #14195
Additional information
Final checks
The text was updated successfully, but these errors were encountered: