Skip to content

Commit

Permalink
fix(docs): fix 404 prerendering
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanvanherwijnen committed Dec 11, 2024
1 parent 0bbb218 commit 39f2c29
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/docs/build/Caddyfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
www.slimfact.app {
handle {
root * /srv/www.slimfact.app
try_files {path}.html {path} /index.html
try_files {path}.html {path} /404.html
file_server
}
}
2 changes: 1 addition & 1 deletion packages/docs/src/pages/Error404Page.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div
class="fullscreen bg-blue text-white text-center q-pa-md flex flex-center"
class="fullscreen bg-primary text-white text-center q-pa-md flex flex-center"
>
<div>
<div style="font-size: 30vh">404</div>
Expand Down
3 changes: 2 additions & 1 deletion packages/docs/src/router/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ const routes: RouteRecordRaw[] = [
// Always leave this as last one,
// but you can also remove it
{
path: '/:catchAll(.*)*',
path: '/404',
alias: '/:catchAll(.*)*',
component: () => import('src/pages/Error404Page.vue')
}
]
Expand Down

0 comments on commit 39f2c29

Please sign in to comment.