Skip to content

Commit d4f2cc1

Browse files
Merge pull request #29 from linked-planet/dev
fixed regression of copying index to 404.html
2 parents 5354d37 + f2bb708 commit d4f2cc1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

showcase/copyIndexTo404.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ const __dirname = dirname(fileURLToPath(import.meta.url))
88
// therefore we copy the index.html to 404.html, and the react router takes over again
99

1010
// locate the index.html build by vite in dist-showcase
11-
const indexHtmlPath = resolve(__dirname, "../dist-showcase/showcase/index.html")
11+
const indexHtmlPath = resolve(__dirname, "../dist-showcase/index.html")
1212
//check if it exists
1313
if (!fs.existsSync(indexHtmlPath)) {
14-
throw new Error("dist-showcase/showcase/index.html not found")
14+
throw new Error("dist-showcase/index.html not found")
1515
}
1616

1717
const html404Path = resolve(__dirname, "../dist-showcase/404.html")

0 commit comments

Comments
 (0)