Skip to content

Conversation

lforst
Copy link
Contributor

@lforst lforst commented Oct 25, 2023

Ref: vercel/next.js#57252

It is apparently allowed for route handler files to have jsx and tsx file extensions, even though it says otherwise in the Next.js docs: https://nextjs.org/docs/app/building-your-application/routing/route-handlers#convention

This PR will cause the SDK to also instrument route handlers with jsx and tsx extensions.

@lforst lforst changed the title fix(nextjs): Instrument route handlers when they're jsx or tsx fix(nextjs): Instrument route handlers with jsx and tsx file extensions Oct 25, 2023
@lforst lforst requested review from Lms24 and mydea October 25, 2023 10:35
@lforst lforst merged commit 9b0abcd into develop Oct 25, 2023
@lforst lforst deleted the lforst-allow-jstsx-route-handlers branch October 25, 2023 11:56
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.

2 participants