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

pass original url with content source data #4818

Merged
merged 1 commit into from
May 4, 2023
Merged

Conversation

sokra
Copy link
Member

@sokra sokra commented May 4, 2023

Description

next.js needs the pre-rewrite url for rendering

see vercel/next.js#49198

@sokra sokra requested a review from a team as a code owner May 4, 2023 10:16
@vercel
Copy link

vercel bot commented May 4, 2023

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

Name Status Preview Updated (UTC)
turbo-site ✅ Ready (Inspect) Visit Preview May 4, 2023 10:16am
10 Ignored Deployments
Name Status Preview Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) May 4, 2023 10:16am
examples-cra-web ⬜️ Ignored (Inspect) May 4, 2023 10:16am
examples-designsystem-docs ⬜️ Ignored (Inspect) May 4, 2023 10:16am
examples-gatsby-web ⬜️ Ignored (Inspect) May 4, 2023 10:16am
examples-kitchensink-blog ⬜️ Ignored (Inspect) May 4, 2023 10:16am
examples-native-web ⬜️ Ignored (Inspect) May 4, 2023 10:16am
examples-nonmonorepo ⬜️ Ignored (Inspect) May 4, 2023 10:16am
examples-svelte-web ⬜️ Ignored (Inspect) May 4, 2023 10:16am
examples-tailwind-web ⬜️ Ignored (Inspect) May 4, 2023 10:16am
examples-vite-web ⬜️ Ignored (Inspect) May 4, 2023 10:16am

@github-actions
Copy link
Contributor

github-actions bot commented May 4, 2023

✅ This change can build next-swc

@github-actions
Copy link
Contributor

github-actions bot commented May 4, 2023

🟢 CI successful 🟢

Thanks

@@ -236,6 +236,9 @@ pub struct ContentSourceData {
pub method: Option<String>,
/// The full url (including query string), if requested.
pub url: Option<String>,
/// The full url (including query string) before rewrites where applied, if
/// requested.
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be nice to explain why this might be useful to a consumer.

@sokra sokra merged commit 7f9d396 into main May 4, 2023
@sokra sokra deleted the sokra/hydration-fix branch May 4, 2023 11:21
sokra added a commit to vercel/next.js that referenced this pull request May 4, 2023
### What?

Use pre-rewrite URL for rendering

### Why?

Rendering app pages needs the original user facing URL.

### Turbopack changes

* vercel/turborepo#4818 <!-- Tobias Koppers - pass
original url with content source data -->
* vercel/turborepo#4817 <!-- Tobias Koppers - avoid
errors in computing issue details -->
gsoltis pushed a commit that referenced this pull request May 5, 2023
### Description

next.js needs the pre-rewrite url for rendering

see vercel/next.js#49198
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 25, 2024
### Description

next.js needs the pre-rewrite url for rendering

see #49198
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 29, 2024
### Description

next.js needs the pre-rewrite url for rendering

see #49198
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Aug 1, 2024
### Description

next.js needs the pre-rewrite url for rendering

see #49198
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