Fix serving images referenced from app directory (#49236)
### What? Fixes serving images that are referenced by JS files inside the `/app` directory. ### Why? ### How? The `NextImageContentSource` attempts to fetch the image out of it's inner content source, and before we were only providing it with the `/public` and `/pages` directory's respective sources. Re: https://vercel.slack.com/archives/C046HAU4H7F/p1683220799917649
This commit is contained in:
parent
12a6827c5d
commit
d24f506e0e
1 changed files with 1 additions and 4 deletions
|
@ -389,10 +389,7 @@ async fn source(
|
|||
let main_source = main_source.into();
|
||||
let source_maps = SourceMapContentSourceVc::new(main_source).into();
|
||||
let source_map_trace = NextSourceMapTraceContentSourceVc::new(main_source).into();
|
||||
let img_source = NextImageContentSourceVc::new(
|
||||
CombinedContentSourceVc::new(vec![static_source, page_source]).into(),
|
||||
)
|
||||
.into();
|
||||
let img_source = NextImageContentSourceVc::new(main_source).into();
|
||||
let router_source = NextRouterContentSourceVc::new(
|
||||
main_source,
|
||||
execution_context,
|
||||
|
|
Loading…
Reference in a new issue