Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions src/components/MaintenanceGate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,12 @@ export function MaintenanceGate({ children }: { children: ReactNode }) {
retry: 1,
});

if (bypass || maintenance.isError) return children;
if (maintenance.isLoading) {
return (
<main className="flex min-h-screen items-center justify-center bg-[#0b0b14] px-6 text-sm text-white/60">
Checking CodeForge status…
</main>
);
// Render the site immediately; maintenance status resolves asynchronously.
// If maintenance is enabled, the existing maintenance screen replaces the site
// as soon as the background check confirms it.
if (bypass || maintenance.isError || maintenance.isLoading || !maintenance.data) {
return children;
}
if (!maintenance.data) return children;

return (
<main className="flex min-h-screen items-center justify-center bg-[#0b0b14] px-6 text-white">
Expand Down
Loading