Skip to content

Conversation

seoyeon9888
Copy link
Contributor

@seoyeon9888 seoyeon9888 commented Oct 1, 2025

fix #17837

add basePath prefix to createRouteManifest

closes #17837

cursor[bot]

This comment was marked as outdated.

@chargome
Copy link
Member

chargome commented Oct 1, 2025

Looks good already, would you mind also reflecting this in one of the e2e-tests (dev-packages/e2e-tests/test-applications)?

@chargome chargome self-assigned this Oct 1, 2025
@seoyeon9888
Copy link
Contributor Author

seoyeon9888 commented Oct 1, 2025

Looks good already, would you mind also reflecting this in one of the e2e-tests (dev-packages/e2e-tests/test-applications)?

@chargome

If I apply a basePath to the existing E2E test application, it seems that all transaction assertions and URL paths in the test code would need to include the basePath prefix.
Is this the recommended approach?

Could you provide some guidance on whether it would be better to add tests directly to the existing app, or to create a separate app with basePath enabled for testing purposes?

@chargome
Copy link
Member

chargome commented Oct 2, 2025

We can move this into a new next-15-basepath test. Feel free to ping me if I should take this over!

cursor[bot]

This comment was marked as outdated.

@seoyeon9888
Copy link
Contributor Author

@chargome

I found a route pattern mismatch in the navigation after updating the manifest, so I fixed it in the following commit to account for the basePath. eb281f7

Also added a simple e2e test for nextjs-15-basepath.

Please take over from here :)

@chargome chargome merged commit 4c85627 into getsentry:develop Oct 13, 2025
169 checks passed
chargome added a commit that referenced this pull request Oct 13, 2025
This PR adds the external contributor to the CHANGELOG.md file, so that
they are credited for their contribution. See #17838

Co-authored-by: chargome <20254395+chargome@users.noreply.github.com>
andreiborza pushed a commit to thedanchez/sentry-javascript that referenced this pull request Oct 15, 2025
fix getsentry#17837

add basePath prefix to createRouteManifest 

closes getsentry#17837

---------

Co-authored-by: Charly Gomez <charly.gomez@sentry.io>
andreiborza pushed a commit to thedanchez/sentry-javascript that referenced this pull request Oct 15, 2025
This PR adds the external contributor to the CHANGELOG.md file, so that
they are credited for their contribution. See getsentry#17838

Co-authored-by: chargome <20254395+chargome@users.noreply.github.com>
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.

nextjs app dir basePath route manifest bug

3 participants