Skip to content

feat: support no-trailing-slash middleware in template#1981

Merged
dai-shi merged 4 commits intomainfrom
fix/template/no-trailing-slash
Mar 7, 2026
Merged

feat: support no-trailing-slash middleware in template#1981
dai-shi merged 4 commits intomainfrom
fix/template/no-trailing-slash

Conversation

@dai-shi
Copy link
Member

@dai-shi dai-shi commented Mar 7, 2026

following #1980

@vercel
Copy link

vercel bot commented Mar 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
waku Ignored Ignored Preview Mar 7, 2026 3:56am

Request Review

@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 7, 2026

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 7, 2026

Open in StackBlitz

npm i https://pkg.pr.new/waku@1981

commit: aab7459

@dai-shi dai-shi changed the title feat: support no-trailing-slash feat: support no-trailing-slash middleware in template Mar 7, 2026
@dai-shi dai-shi marked this pull request as ready for review March 7, 2026 04:05
@@ -0,0 +1,3 @@
import { trimTrailingSlash } from 'hono/trailing-slash';

export default () => trimTrailingSlash({ alwaysRedirect: true });
Copy link
Member Author

Choose a reason for hiding this comment

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

This might cause some troubles in edge cases, but let's see how it goes.

@dai-shi dai-shi merged commit 6dfbc99 into main Mar 7, 2026
48 of 49 checks passed
@dai-shi dai-shi deleted the fix/template/no-trailing-slash branch March 7, 2026 04:44
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.

1 participant