Skip to content

Restore Next.js documentation#738

Merged
yusukebe merged 2 commits into
honojs:mainfrom
unishigure:main
Sep 12, 2025
Merged

Restore Next.js documentation#738
yusukebe merged 2 commits into
honojs:mainfrom
unishigure:main

Conversation

@unishigure

Copy link
Copy Markdown
Contributor

Resolve #707

Restored the removed documentation for Next.js as docs/getting-started/nextjs.

Comment thread docs/getting-started/nextjs.md Outdated

Next.js is a flexible React framework that gives you building blocks to create fast web applications.

In Next.js, [Edge Functions](https://vercel.com/docs/concepts/functions/edge-functions) allows you to create dynamic APIs on Edge Runtime such as Vercel.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not super familiar with recent Next.js/Vercel things, but the link to https://vercel.com/docs/concepts/functions/edge-functions will redirect to https://vercel.com/docs/functions. I think they don't use "Edge Functions" anymore. If so, we have to change the description to follow the recent updates.

@unishigure unishigure Sep 10, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As you pointed out, I reviewed the current version of Vercel Functions and found that it recommends migrating from Edge to Node.js. (ref)
Therefore, I removed references to Edge Functions and revised the content to focus on the Node.js runtime.
1344f37

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@unishigure

Thank you for investigating. That's good.

So, should we update the starter template? This means removing this line:

https://github.com/honojs/starter/blob/5d6275be3eb9ad14f4e00bbadc572695e88ae18e/templates/nextjs/app/api/%5B...route%5D/route.ts#L4

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yusukebe
Yes, that line is unnecessary.

I actually deleted that line and deployed to Vercel, and confirmed that it works without any issues.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yusukebe yusukebe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@yusukebe

Copy link
Copy Markdown
Member

@unishigure

Looks good! I'll merge this now.

One thing, can you replay the comment? #738 (comment)

Thanks!

@yusukebe
yusukebe merged commit e85105f into honojs:main Sep 12, 2025
2 checks passed
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.

Restore documentation for using Hono with Next.js

2 participants