export default defineNuxtRouteMiddleware((to, from) => { const config = useRuntimeConfig(); const isComingSoonMode = config.public.comingSoon === "true" || config.public.comingSoon === true; // Only enforce coming soon mode if enabled if (!isComingSoonMode) { return; } // Allow access to the coming-soon page itself if (to.path === "/coming-soon") { return; } // Redirect all other routes to coming-soon return navigateTo("/coming-soon"); });