File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -687,11 +687,29 @@ where
687
687
)
688
688
} ;
689
689
690
+ let static_files = if is_some_entry_point {
691
+ let entrypoint_path = main_module_url
692
+ . to_file_path ( )
693
+ . map_err ( |_| anyhow ! ( "failed to convert entrypoint to path" ) ) ?;
694
+ let static_root_path = entrypoint_path
695
+ . parent ( )
696
+ . ok_or_else ( || anyhow ! ( "could not resolve parent of entrypoint" ) ) ?
697
+ . to_path_buf ( ) ;
698
+
699
+ metadata
700
+ . static_assets_lookup ( static_root_path)
701
+ . into_iter ( )
702
+ . chain ( static_files. into_iter ( ) )
703
+ . collect ( )
704
+ } else {
705
+ static_files
706
+ } ;
707
+
690
708
let ( fs, s3_fs) = build_file_system_fn ( if is_user_worker {
691
709
Arc :: new ( StaticFs :: new (
692
710
static_files,
693
711
if matches ! ( entrypoint, Some ( Entrypoint :: ModuleCode ( _) ) | None )
694
- && maybe_entrypoint . is_some ( )
712
+ && is_some_entry_point
695
713
{
696
714
// it is eszip from before v2
697
715
base_url
You can’t perform that action at this time.
0 commit comments