Skip to content

Commit 93ef855

Browse files
committed
chore
1 parent f91d025 commit 93ef855

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/vike-photon/src/middleware/middlewares/serveStatic.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ async function removeBaseUrl(req: Request) {
3131

3232
function getDefaultStaticDir() {
3333
const argv1 = process.argv[1];
34-
const entrypointDirAbs = argv1 && !argv1.endsWith('vike/bin.js')
35-
? dirname(isAbsolute(argv1) ? argv1 : join(process.cwd(), argv1))
36-
: dirname(fileURLToPath(import.meta.url));
34+
const entrypointDirAbs =
35+
argv1 && !argv1.endsWith("vike/bin.js")
36+
? dirname(isAbsolute(argv1) ? argv1 : join(process.cwd(), argv1))
37+
: dirname(fileURLToPath(import.meta.url));
3738
return join(entrypointDirAbs, "..", "client");
3839
}
3940

0 commit comments

Comments
 (0)