mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-29 03:51:45 +03:00
fix: white screen after build
This commit is contained in:
parent
d1f2b3f8af
commit
9bd6bcaf65
@ -71,7 +71,7 @@ const AppDefender = ({ children }: PropsWithChildren) => {
|
||||
const { synced } = useAppState();
|
||||
|
||||
useEffect(() => {
|
||||
if (router.asPath === '/') {
|
||||
if (['/index.html', '/'].includes(router.asPath)) {
|
||||
router.replace('/workspace');
|
||||
}
|
||||
}, [router]);
|
||||
|
Loading…
Reference in New Issue
Block a user