Merge branch 'main' into feat/math-rendering

This commit is contained in:
viper151
2025-11-05 23:02:01 +01:00
committed by GitHub
6 changed files with 84 additions and 10 deletions

View File

@@ -26,6 +26,12 @@ const LoadingScreen = () => (
const ProtectedRoute = ({ children }) => {
const { user, isLoading, needsSetup } = useAuth();
// Platform mode: skip all auth UI and directly render children
if (import.meta.env.VITE_IS_PLATFORM === 'true') {
return children;
}
// Normal OSS mode: standard auth flow
if (isLoading) {
return <LoadingScreen />;
}