We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5354d37 + f2bb708 commit d4f2cc1Copy full SHA for d4f2cc1
showcase/copyIndexTo404.js
@@ -8,10 +8,10 @@ const __dirname = dirname(fileURLToPath(import.meta.url))
8
// therefore we copy the index.html to 404.html, and the react router takes over again
9
10
// locate the index.html build by vite in dist-showcase
11
-const indexHtmlPath = resolve(__dirname, "../dist-showcase/showcase/index.html")
+const indexHtmlPath = resolve(__dirname, "../dist-showcase/index.html")
12
//check if it exists
13
if (!fs.existsSync(indexHtmlPath)) {
14
- throw new Error("dist-showcase/showcase/index.html not found")
+ throw new Error("dist-showcase/index.html not found")
15
}
16
17
const html404Path = resolve(__dirname, "../dist-showcase/404.html")
0 commit comments