fix: resolve blank screen caused by redux-persist refactor
Deploy to Vercel / deploy (push) Successful in 1m33s
Deploy to Vercel / deploy (push) Successful in 1m33s
This commit is contained in:
+3
-2
@@ -10,10 +10,11 @@ import {
|
||||
PURGE,
|
||||
REGISTER,
|
||||
} from "redux-persist"
|
||||
import storage from "redux-persist/lib/storage/session" // use session storage
|
||||
// import storage from "redux-persist/lib/storage" // use local storage
|
||||
import createWebStorage from "redux-persist/es/storage/createWebStorage"
|
||||
import authReducer from "./auth-slice"
|
||||
|
||||
const storage = createWebStorage(import.meta.env.VITE_REDUX_STORAGE ?? "local")
|
||||
|
||||
const persistConfig = {
|
||||
key: "root",
|
||||
storage,
|
||||
|
||||
Vendored
+1
@@ -1,6 +1,7 @@
|
||||
/// <reference types="vite/client" />
|
||||
interface ImportMetaEnv {
|
||||
readonly VITE_SEO_SITE_URL: string
|
||||
readonly VITE_REDUX_STORAGE: string
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
|
||||
Reference in New Issue
Block a user