We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I believe this is a bug:
routes/[slug].txt.ts:
routes/[slug].txt.ts
export default eventHandler(async (event) => { return event.context.params; });
Response when hitting http://localhost:3000/test.txt
{ "slug.txt": "test.txt" }
Reproduction: https://stackblitz.com/edit/github-kx4iv8?file=routes%2Findex.ts,routes%2F%5Bslug%5D.txt.ts
The text was updated successfully, but these errors were encountered:
Current workaround:
const slug = event.context.params.slug || (event.context.params['slug.txt'] || '').replace('.txt', '')
Waiting for unjs/radix3#52 to be added to Nitro
Sorry, something went wrong.
No branches or pull requests
I believe this is a bug:
routes/[slug].txt.ts
:Response when hitting http://localhost:3000/test.txt
Reproduction: https://stackblitz.com/edit/github-kx4iv8?file=routes%2Findex.ts,routes%2F%5Bslug%5D.txt.ts
The text was updated successfully, but these errors were encountered: