Skip to content

Commit b8f1daa

Browse files
committed
chore: revert error page not found
1 parent 27815ff commit b8f1daa

File tree

3 files changed

+1
-30
lines changed

3 files changed

+1
-30
lines changed

examples/ecommerce-jewellery-store/index.html

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,6 @@
1717
<body>
1818
<div id="root"></div>
1919
<script type="module" src="/src/main.tsx"></script>
20-
<script>
21-
(() => {
22-
const redirect = sessionStorage.redirect;
23-
delete sessionStorage.redirect;
24-
if (redirect && redirect !== location.href) {
25-
history.replaceState(null, null, redirect);
26-
}
27-
})();
28-
</script>
2920
</body>
3021

3122
</html>

examples/ecommerce-jewellery-store/public/404.html

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { defineConfig } from 'vite';
22
import react from '@vitejs/plugin-react';
33
import path from 'path';
4-
import { resolve } from 'path';
54
import { fileURLToPath } from 'url';
65

76
const __filename = fileURLToPath(import.meta.url);
@@ -17,12 +16,6 @@ export default defineConfig({
1716
},
1817
},
1918
build: {
20-
outDir: 'build',
21-
rollupOptions: {
22-
input: {
23-
main: resolve(__dirname, "index.html"),
24-
404: resolve(__dirname, "public/404.html"),
25-
},
26-
},
19+
outDir: 'build'
2720
},
2821
});

0 commit comments

Comments
 (0)