File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
packages/cloudflare/src/cli/commands Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,15 @@ export function getCacheAssets(opts: BuildOptions): CacheAsset[] {
5959
6060 for ( const file of allFiles ) {
6161 const fullPath = file . fullpathPosix ( ) ;
62- const relativePath = normalizePath ( path . relative ( path . join ( opts . outputDir , "cache" ) , fullPath ) ) ;
62+ console . warn ( "fullPath" , fullPath ) ;
63+ console . warn ( "path.join" , path . join ( opts . outputDir , "cache" ) ) ;
64+ const relativePath = normalizePath (
65+ fullPath
66+ . replace ( / ^ \\ \\ \? \\ / , "" )
67+ . replace ( path . join ( opts . outputDir , "cache" ) , "" )
68+ . replace ( / ^ \/ / , "" )
69+ ) ;
70+ console . warn ( "relativePath" , relativePath ) ;
6371
6472 if ( relativePath . startsWith ( "__fetch" ) ) {
6573 const [ __fetch , buildId , ...keyParts ] = relativePath . split ( "/" ) ;
You can’t perform that action at this time.
0 commit comments