From 3d0c3c54ef8428afde3197b1dc94190586911ac5 Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Tue, 9 May 2023 12:29:37 -0400 Subject: [PATCH] build w/ trailingSlash --- contrib/nginx.conf | 20 ++++++++++++++++++++ src/routes/(about)/about/+page.svelte | 4 ++-- src/routes/+layout.js | 1 + svelte.config.js | 10 ++++++---- vite.config.js | 1 + 5 files changed, 30 insertions(+), 6 deletions(-) create mode 100644 contrib/nginx.conf diff --git a/contrib/nginx.conf b/contrib/nginx.conf new file mode 100644 index 0000000..ed28bca --- /dev/null +++ b/contrib/nginx.conf @@ -0,0 +1,20 @@ +server { + listen 443 ssl; + listen 8080; + + server_name docks.babyl.ca; + + ssl_certificate /etc/lego/certificates/_.babyl.ca.crt; + ssl_certificate_key /etc/lego/certificates/_.babyl.ca.key; + + root /home/docks; + index index.html; + + error_log /var/log/nginx/docks-error.log error; + access_log /var/log/nginx/docks-access.log combined; + + location / { + try_files $uri $uri/ /index.html =404; + } +} +yan diff --git a/src/routes/(about)/about/+page.svelte b/src/routes/(about)/about/+page.svelte index 0e79314..35feacb 100644 --- a/src/routes/(about)/about/+page.svelte +++ b/src/routes/(about)/about/+page.svelte @@ -26,13 +26,13 @@

Written by - Yanick Champoux . Code available on - my Gitea instance.

+

Found a bug? You can report it here.

+