Add landing page
This commit is contained in:
parent
3fea484585
commit
bce86ee840
47 changed files with 7119 additions and 439 deletions
18
app/middleware/coming-soon.global.js
Normal file
18
app/middleware/coming-soon.global.js
Normal 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");
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue