You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the app is served at a single endpoint, /index.html. The goal is to serve a statically rendered index.html and direct logged-in users to a dynamic /app.html.
The redirect/rewrite scheme will be this:
Server-side rewrites
/ -> /index.html
/* -> /app.html
Breakdown for users and login state
/ -> User is served index.html, follows links to access logged-in home (/games)
/* -> User is served app.html, app waits for login state and redirects to /login if logged-out
Todos:
Separate index.html and app.html endpoints
Modify Firebase hosting route configuration for new html endpoints
Add code-splitting so homepage does not load non-essential components
Statically render homepage during CI build
The text was updated successfully, but these errors were encountered:
Tracking issue for a static frontpage.
Background
Currently the app is served at a single endpoint,
/index.html
. The goal is to serve a statically renderedindex.html
and direct logged-in users to a dynamic/app.html
.The redirect/rewrite scheme will be this:
Server-side rewrites
/
->/index.html
/*
->/app.html
Breakdown for users and login state
/
-> User is servedindex.html
, follows links to access logged-in home (/games
)/*
-> User is servedapp.html
, app waits for login state and redirects to/login
if logged-outTodos:
The text was updated successfully, but these errors were encountered: