mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Merge pull request #3151 from akhilmhdh/fix/vite-error
Added vite error handler to resolve post build error
This commit is contained in:
@@ -19,7 +19,12 @@ import "./index.css";
|
|||||||
import "./translation";
|
import "./translation";
|
||||||
// don't want to use this?
|
// don't want to use this?
|
||||||
// have a look at the Quick start guide
|
// have a look at the Quick start guide
|
||||||
// for passing in lng and translations on init
|
// for passing in lng and translations on init/
|
||||||
|
|
||||||
|
// https://vite.dev/guide/build#load-error-handling
|
||||||
|
window.addEventListener("vite:preloadError", () => {
|
||||||
|
window.location.reload(); // for example, refresh the page
|
||||||
|
});
|
||||||
|
|
||||||
// Create a new router instance
|
// Create a new router instance
|
||||||
NProgress.configure({ showSpinner: false });
|
NProgress.configure({ showSpinner: false });
|
||||||
|
|||||||
Reference in New Issue
Block a user