File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import type { IncrementalCache } from "types/overrides.js";
5
5
import { getOutputDir } from "utils/normalize-path" ;
6
6
7
7
const buildId = process . env . NEXT_BUILD_ID ;
8
- const basePath = path . join ( getOutputDir ( ) , `../../ cache/${ buildId } ` ) ;
8
+ const basePath = path . join ( getOutputDir ( ) , `cache/${ buildId } ` ) ;
9
9
10
10
const getCacheKey = ( key : string ) => {
11
11
return path . join ( basePath , `${ key } .cache` ) ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { getOutputDir } from "utils/normalize-path";
6
6
7
7
const tagFile = path . join (
8
8
getOutputDir ( ) ,
9
- "../../ dynamodb-provider/dynamodb-cache.json" ,
9
+ "dynamodb-provider/dynamodb-cache.json" ,
10
10
) ;
11
11
const tagContent = fs . readFileSync ( tagFile , "utf-8" ) ;
12
12
Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ import { getOutputDir } from "utils/normalize-path";
8
8
const wrapper : WrapperHandler = async ( handler , converter ) => {
9
9
const app = express ( ) ;
10
10
// To serve static assets
11
- app . use ( express . static ( path . join ( getOutputDir ( ) , "../../ assets" ) ) ) ;
11
+ app . use ( express . static ( path . join ( getOutputDir ( ) , "assets" ) ) ) ;
12
12
13
13
const imageHandlerPath = path . join (
14
14
getOutputDir ( ) ,
15
- "../../ image-optimization-function/index.mjs" ,
15
+ "image-optimization-function/index.mjs" ,
16
16
) ;
17
17
18
18
const imageHandler = await import ( imageHandlerPath ) . then ( ( m ) => m . handler ) ;
Original file line number Diff line number Diff line change @@ -11,5 +11,6 @@ export function getOutputDir() {
11
11
. filter ( Boolean )
12
12
. map ( ( ) => ".." )
13
13
. join ( "/" ) ,
14
+ "../../" ,
14
15
) ;
15
16
}
You can’t perform that action at this time.
0 commit comments