diff --git a/nginx/nginx.conf.template b/nginx/nginx.conf.template
index 57d93e3..b5dfaa4 100644
--- a/nginx/nginx.conf.template
+++ b/nginx/nginx.conf.template
@@ -50,7 +50,7 @@ http {
ssl_certificate_key /etc/letsencrypt/live/$DOMAIN/privkey.pem;
location / {
- try_files $uri $uri/ =404;
+ try_files $uri $uri/ /index.html;
}
location ~ /.well-known/acme-challenge/ {
diff --git a/nginx/vue/index.html b/nginx/vue/index.html
index df2675c..f79b6f6 100644
--- a/nginx/vue/index.html
+++ b/nginx/vue/index.html
@@ -5,7 +5,6 @@
AF
-
diff --git a/nginx/vue/src/router/index.js b/nginx/vue/src/router/index.js
index c3969c6..e05cb45 100644
--- a/nginx/vue/src/router/index.js
+++ b/nginx/vue/src/router/index.js
@@ -17,6 +17,16 @@ const router = createRouter({
// which is lazy-loaded when the route is visited.
component: () => import("../views/CV.vue"),
},
+ {
+ path: "/bookmarks",
+ name: "bookmarks",
+ component: () => import("../views/Bookmarks.vue"),
+ },
+ {
+ path: "/:pathMatch(.*)*",
+ name: "404",
+ component: () => import("../views/404.vue"),
+ },
],
});
diff --git a/nginx/vue/src/views/Home.vue b/nginx/vue/src/views/Home.vue
index ce2e067..cf42cf1 100644
--- a/nginx/vue/src/views/Home.vue
+++ b/nginx/vue/src/views/Home.vue
@@ -10,10 +10,10 @@ import CurrentlyListening from "@/components/CurrentlyListening.vue";
Hi im Adam
cv
- CV
+ cv
bookmarks
- bookmarks
+ bookmarks