Skip to content

Commit

Permalink
OS2UOL-70: SEO feedback seo stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
tutaru99 committed Nov 7, 2024
1 parent 23a5144 commit e6e1b48
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/Maintenance.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ useHead({
],
});
// Attempt to redirect to homepage every 30s
// Attempt to redirect to homepage every 90s
setTimeout(() => {
window.location.href = '/';
}, 30000);
}, 90000);
</script>

<template>
Expand Down
7 changes: 7 additions & 0 deletions server/middleware/maintenance.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default defineEventHandler((event) => {
const { req, res } = event.node;

if (req.url === '/maintenance') {
res.statusCode = 500;
}
});

0 comments on commit e6e1b48

Please sign in to comment.