-
Notifications
You must be signed in to change notification settings - Fork 27k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare StaticAssetsContentSourceVc for basePath (vercel/turborepo#5210)
### 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. -->
- Loading branch information
1 parent
24c6d72
commit 07a21e5
Showing
1 changed file
with
37 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters