Skip to content

Commit

Permalink
use shared function
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed May 23, 2023
1 parent 891b9b5 commit dd935d2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/next-swc/crates/next-core/src/app_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@ import {}, {{ chunks as {} }} from "COMPONENT_{}";
project_path,
intermediate_output_path,
intermediate_output_path.join("chunks"),
server_root.join("_next/static/media"),
get_client_assets_path(server_root, Value::new(ClientContextType::App { app_dir })),
context.compile_time_info().environment(),
)
.layer("ssr")
Expand Down Expand Up @@ -1099,7 +1099,12 @@ impl AppRouteVc {
this.project_path,
this.intermediate_output_path,
this.intermediate_output_path.join("chunks"),
this.server_root.join("_next/static/media"),
get_client_assets_path(
this.server_root,
Value::new(ClientContextType::App {
app_dir: self.app_dir,
}),
),
this.context.compile_time_info().environment(),
)
.layer("ssr")
Expand Down

0 comments on commit dd935d2

Please sign in to comment.