cbc9357c5c38978398aabc0748a681a5f92a45fb
The bare domain rendered Dashboard, so an anonymous visitor to the front door was held on the spinner and then redirected to Google — the marketing page was only reachable by knowing the /LandingPage URL. Key the decision off appParams.token rather than the resolved auth state so it settles synchronously, and the first paint is the landing page instead of a spinner waiting on a bootstrap request that can only redirect them away. A signed-in user still gets Dashboard. Also treat auth_required on / as signed out. Reaching that branch there means a token existed but is expired or revoked, and redirecting would trap the front door in a login bounce. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Base44 Preview Template for MicroVM sandbox
This template is used by the server to preview user-apps.
user files
server creates the user-app files in the components, pages folders
server injected data
server injects app related data to app.config.js, which is used by App.jsx to render the components in the files.
Description
Languages
JavaScript
99.7%
CSS
0.3%