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
Convert custom-server-express
example to TypeScript
#42110
Convert custom-server-express
example to TypeScript
#42110
Conversation
Thanks for the link! Though I think this example should be maintained as long as it's referenced by the Next.js custom server docs. |
@leerob What do you think we should do with the following JavaScript examples? I think they should be maintained and converted to TypeScript, however based on your comment #33128 (comment), it sounds like custom servers aren't recommended, and therefore the examples can't be updated. If this is the case, it might make sense to deprecate them in favour of the main
|
I think we can remove them in favor of the custom server example 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice change 👍
Fixes @leerob's comment #42110 (comment) ~~Deprecated~~ Removed all custom server integration examples (Express, Fastify, etc.) in favour of the main `custom-server` example, ~~and left behind a helpful `README.md` in case they might be linked to.~~ ## Documentation / Examples - [X] Make sure the linting passes by running `pnpm build && pnpm lint` - [X] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
Converted Express example to TypeScript to match Contribution docs.
nodemon
to match thecustom-server
example, and allow live reloading ofserver.ts
<Link href="/a" as="/b">
routingDocumentation / Examples
pnpm build && pnpm lint