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

fix: don't escape base path in ecmascript runtime to allow for URLs #7093

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

ForsakenHarmony
Copy link
Contributor

@ForsakenHarmony ForsakenHarmony commented Jan 24, 2024

Description

next's asset prefix can be a full URL, I think we can assume that the basepath itself is valid.
we probably also want to ensure that the chunkPath never contains invalid URL characters at build time so we don't need to escape anything at all at runtime.

Need to make sure it passes all next.js tests vercel/next.js#61090

Closes PACK-2282

Copy link

vercel bot commented Jan 24, 2024

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

Name Status Preview Comments Updated (UTC)
examples-tailwind-web 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jan 24, 2024 3:03pm
rust-docs ❌ Failed (Inspect) Jan 24, 2024 3:03pm
turbo-site ✅ Ready (Inspect) Visit Preview Jan 24, 2024 3:03pm
8 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview Jan 24, 2024 3:03pm
examples-designsystem-docs ⬜️ Ignored (Inspect) Jan 24, 2024 3:03pm
examples-gatsby-web ⬜️ Ignored (Inspect) Visit Preview Jan 24, 2024 3:03pm
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview Jan 24, 2024 3:03pm
examples-native-web ⬜️ Ignored (Inspect) Visit Preview Jan 24, 2024 3:03pm
examples-nonmonorepo ⬜️ Ignored (Inspect) Visit Preview Jan 24, 2024 3:03pm
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview Jan 24, 2024 3:03pm
examples-vite-web ⬜️ Ignored (Inspect) Jan 24, 2024 3:03pm

Copy link
Contributor

github-actions bot commented Jan 24, 2024

🟢 Turbopack Benchmark CI successful 🟢

Thanks

Copy link
Contributor

✅ This change can build next-swc

Copy link
Contributor

github-actions bot commented Jan 24, 2024

🟢 CI successful 🟢

Thanks

@ForsakenHarmony ForsakenHarmony merged commit d67c4bb into main Jan 24, 2024
53 of 54 checks passed
@ForsakenHarmony ForsakenHarmony deleted the hrmny/pack-2282-turbopack-assetprefix-fix branch January 24, 2024 19:20
@ForsakenHarmony ForsakenHarmony restored the hrmny/pack-2282-turbopack-assetprefix-fix branch January 24, 2024 20:12
ForsakenHarmony added a commit to vercel/next.js that referenced this pull request Jan 24, 2024
### Turbopack Updates

* vercel/turborepo#7091 <!-- Tobias Koppers - lock
reqwest to 0.11.17 due to build issues -->
* vercel/turborepo#7080 <!-- Tobias Koppers - reduce
work and tasks during module analysis -->
* vercel/turborepo#7093 <!-- Leah - fix: don't
escape base path in ecmascript runtime to allow for URLs -->

Closes PACK-2282
Fixes #60891 via vercel/turborepo#7093
@ForsakenHarmony ForsakenHarmony deleted the hrmny/pack-2282-turbopack-assetprefix-fix branch January 25, 2024 17:42
kdy1 added a commit that referenced this pull request Jan 26, 2024
ForsakenHarmony added a commit to vercel/next.js that referenced this pull request Jul 25, 2024
…ercel/turborepo#7093)

### Description

next's asset prefix can be a full URL, I think we can assume that the
basepath itself is valid.
we probably also want to ensure that the `chunkPath` never contains
invalid URL characters at build time so we don't need to escape anything
at all at runtime.

Need to make sure it passes all next.js tests
#61090

Closes PACK-2282
ForsakenHarmony added a commit to vercel/next.js that referenced this pull request Jul 29, 2024
…ercel/turborepo#7093)

### Description

next's asset prefix can be a full URL, I think we can assume that the
basepath itself is valid.
we probably also want to ensure that the `chunkPath` never contains
invalid URL characters at build time so we don't need to escape anything
at all at runtime.

Need to make sure it passes all next.js tests
#61090

Closes PACK-2282
ForsakenHarmony added a commit to vercel/next.js that referenced this pull request Jul 29, 2024
…ercel/turborepo#7093)

### Description

next's asset prefix can be a full URL, I think we can assume that the
basepath itself is valid.
we probably also want to ensure that the `chunkPath` never contains
invalid URL characters at build time so we don't need to escape anything
at all at runtime.

Need to make sure it passes all next.js tests
#61090

Closes PACK-2282
ForsakenHarmony added a commit to vercel/next.js that referenced this pull request Aug 1, 2024
…ercel/turborepo#7093)

### Description

next's asset prefix can be a full URL, I think we can assume that the
basepath itself is valid.
we probably also want to ensure that the `chunkPath` never contains
invalid URL characters at build time so we don't need to escape anything
at all at runtime.

Need to make sure it passes all next.js tests
#61090

Closes PACK-2282
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