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

Prepare StaticAssetsContentSourceVc for basePath #5210

Merged
merged 2 commits into from
Jun 5, 2023
Merged

Conversation

jridgewell
Copy link
Contributor

Description

This is part 1 of WEB-993 basePath support. The static assets (things served in the /public directory) can only serve requests that include the basePath, so we'll need to pass that in. In order to not completely invalidate the source function (and all the things that depend on cells created there, ie everything) every time the user edits the next.config.js, we'll need to accept a StringVc. This sets us up without breaking backwards compat, making this multi-PR adventure a little easier.

Testing Instructions

@jridgewell jridgewell requested a review from a team as a code owner June 5, 2023 20:34
@vercel
Copy link

vercel bot commented Jun 5, 2023

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

Name Status Preview Comments Updated (UTC)
examples-cra-web 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jun 5, 2023 9:39pm
examples-kitchensink-blog 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jun 5, 2023 9:39pm
9 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview Jun 5, 2023 9:39pm
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview Jun 5, 2023 9:39pm
examples-gatsby-web ⬜️ Ignored (Inspect) Visit Preview Jun 5, 2023 9:39pm
examples-native-web ⬜️ Ignored (Inspect) Visit Preview Jun 5, 2023 9:39pm
examples-nonmonorepo ⬜️ Ignored (Inspect) Visit Preview Jun 5, 2023 9:39pm
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview Jun 5, 2023 9:39pm
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview Jun 5, 2023 9:39pm
examples-vite-web ⬜️ Ignored (Inspect) Visit Preview Jun 5, 2023 9:39pm
turbo-site ⬜️ Ignored (Inspect) Visit Preview Jun 5, 2023 9:39pm

@github-actions
Copy link
Contributor

github-actions bot commented Jun 5, 2023

✅ This change can build next-swc

@github-actions
Copy link
Contributor

github-actions bot commented Jun 5, 2023

⚠️ CI failed ⚠️

The following steps have failed in CI:

  • Turbopack Rust tests (mac/win, non-blocking)

See workflow summary for details

@github-actions
Copy link
Contributor

github-actions bot commented Jun 5, 2023

Linux Benchmark for 55f9459

Click to view benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 9379.65µs ± 52.07µs 9270.12µs ± 74.17µs -1.17%
bench_hmr_to_eval/Turbopack CSR/1000 modules 8468.63µs ± 49.47µs 8636.07µs ± 252.81µs +1.98%
bench_startup/Turbopack CSR/1000 modules 918.65ms ± 1.87ms 914.55ms ± 2.86ms -0.45%

@jridgewell jridgewell added the pr: automerge Kodiak will merge these automatically after checks pass label Jun 5, 2023
@kodiakhq kodiakhq bot merged commit fabc940 into main Jun 5, 2023
@kodiakhq kodiakhq bot deleted the jrl-base-path-1 branch June 5, 2023 21:56
@github-actions
Copy link
Contributor

github-actions bot commented Jun 5, 2023

Linux Benchmark for 4803962

Click to view benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 8779.36µs ± 39.93µs 8752.55µs ± 81.79µs -0.31%
bench_hmr_to_eval/Turbopack CSR/1000 modules 7888.37µs ± 61.61µs 8113.29µs ± 244.20µs +2.85%
bench_startup/Turbopack CSR/1000 modules 895.64ms ± 2.15ms 894.63ms ± 3.78ms -0.11%

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

This is part 1 of WEB-993 `basePath` support. The static assets (things
served in the `/public` directory) can only serve requests that include
the `basePath`, so we'll need to pass that in. In order to not
completely invalidate the
[source](https://github.com/vercel/next.js/blob/2b1f0d9351610b04d01638efed19252ca81d0023/packages/next-swc/crates/next-dev/src/lib.rs#L379-L380)
function (and all the things that depend on cells created there, ie
everything) every time the user edits the `next.config.js`, we'll need
to accept a `StringVc`. This sets us up without breaking backwards
compat, making this multi-PR adventure a little easier.

### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 29, 2024
### Description

This is part 1 of WEB-993 `basePath` support. The static assets (things
served in the `/public` directory) can only serve requests that include
the `basePath`, so we'll need to pass that in. In order to not
completely invalidate the
[source](https://github.com/vercel/next.js/blob/2b1f0d9351610b04d01638efed19252ca81d0023/packages/next-swc/crates/next-dev/src/lib.rs#L379-L380)
function (and all the things that depend on cells created there, ie
everything) every time the user edits the `next.config.js`, we'll need
to accept a `StringVc`. This sets us up without breaking backwards
compat, making this multi-PR adventure a little easier.

### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Aug 1, 2024
### Description

This is part 1 of WEB-993 `basePath` support. The static assets (things
served in the `/public` directory) can only serve requests that include
the `basePath`, so we'll need to pass that in. In order to not
completely invalidate the
[source](https://github.com/vercel/next.js/blob/2b1f0d9351610b04d01638efed19252ca81d0023/packages/next-swc/crates/next-dev/src/lib.rs#L379-L380)
function (and all the things that depend on cells created there, ie
everything) every time the user edits the `next.config.js`, we'll need
to accept a `StringVc`. This sets us up without breaking backwards
compat, making this multi-PR adventure a little easier.

### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->
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.

2 participants