Skip to content
New issue

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

Leave pathname formatting up to the caller #4776

Merged
merged 1 commit into from
May 3, 2023

Conversation

alexkirsz
Copy link
Contributor

@alexkirsz alexkirsz commented May 2, 2023

Description

Next.js code calling into create_node_rendered_source doesn't always format the pathname with a leading /.

This PR removes all assumptions about the pathname from turbopack-node and leaves the formatting up to the caller.

Testing Instructions

N/A

Corresponding Next.js PR: vercel/next.js#49085

link WEB-366

@vercel
Copy link

vercel bot commented May 2, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

11 Ignored Deployments
Name Status Preview Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) May 2, 2023 11:53am
examples-cra-web ⬜️ Ignored (Inspect) May 2, 2023 11:53am
examples-designsystem-docs ⬜️ Ignored (Inspect) May 2, 2023 11:53am
examples-gatsby-web ⬜️ Ignored (Inspect) May 2, 2023 11:53am
examples-kitchensink-blog ⬜️ Ignored (Inspect) May 2, 2023 11:53am
examples-native-web ⬜️ Ignored (Inspect) May 2, 2023 11:53am
examples-nonmonorepo ⬜️ Ignored (Inspect) May 2, 2023 11:53am
examples-svelte-web ⬜️ Ignored (Inspect) May 2, 2023 11:53am
examples-tailwind-web ⬜️ Ignored (Inspect) May 2, 2023 11:53am
examples-vite-web ⬜️ Ignored (Inspect) May 2, 2023 11:53am
turbo-site ⬜️ Ignored (Inspect) May 2, 2023 11:53am

@github-actions
Copy link
Contributor

github-actions bot commented May 2, 2023

✅ This change can build next-swc

@github-actions
Copy link
Contributor

github-actions bot commented May 2, 2023

🟢 CI successful 🟢

Thanks

@alexkirsz alexkirsz marked this pull request as ready for review May 3, 2023 12:39
@alexkirsz alexkirsz requested a review from a team as a code owner May 3, 2023 12:39
@alexkirsz alexkirsz added the pr: automerge Kodiak will merge these automatically after checks pass label May 3, 2023
@alexkirsz alexkirsz merged commit 4a0ec26 into main May 3, 2023
45 of 48 checks passed
@alexkirsz alexkirsz deleted the alexkirsz/web-366-custom-404-page-in-applayouts branch May 3, 2023 15:48
alexkirsz added a commit to vercel/next.js that referenced this pull request May 3, 2023
See vercel/turbo#4776

This adds support for:

* Default and custom global app 404 pages (`app/not-found`).
* Segment-level 404 pages (`app/segment/not-found`).

This also updates Turbopack:

* vercel/turbo#4787 <!-- Tobias Koppers -
Bugfixes for free var and binding replacement -->
* vercel/turbo#4789 <!-- Alex Kirszenberg -
Print a warning when importing Sass files -->
* vercel/turbo#4776 <!-- Alex Kirszenberg -
Leave pathname formatting up to the caller -->
* vercel/turbo#4790 <!-- Tobias Koppers - remove
inital compilation message by default -->

## TODO:

- [ ] ~~The dev overlay shows up when `notFound()` is called, it should
be hidden~~ (moved to WEB-980)
- [ ] ~~Navigating to the global 404 page doesn't work~~ (this is a bug
in Next.js, see NEXT-963)
- [x] Tests.

---------

Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: automerge Kodiak will merge these automatically after checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants