We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f91d025 commit 93ef855Copy full SHA for 93ef855
packages/vike-photon/src/middleware/middlewares/serveStatic.ts
@@ -31,9 +31,10 @@ async function removeBaseUrl(req: Request) {
31
32
function getDefaultStaticDir() {
33
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));
+ const entrypointDirAbs =
+ argv1 && !argv1.endsWith("vike/bin.js")
+ ? dirname(isAbsolute(argv1) ? argv1 : join(process.cwd(), argv1))
37
+ : dirname(fileURLToPath(import.meta.url));
38
return join(entrypointDirAbs, "..", "client");
39
}
40
0 commit comments