Add landing page

This commit is contained in:
Jennie Robinson Faber 2025-11-03 11:17:51 +00:00
parent 3fea484585
commit bce86ee840
47 changed files with 7119 additions and 439 deletions

View file

@ -0,0 +1,18 @@
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");
});