build w/ trailingSlash
This commit is contained in:
parent
6b999a5a82
commit
3d0c3c54ef
20
contrib/nginx.conf
Normal file
20
contrib/nginx.conf
Normal file
@ -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
|
@ -26,13 +26,13 @@
|
|||||||
|
|
||||||
<p>
|
<p>
|
||||||
Written by
|
Written by
|
||||||
<!-- TODO change link -->
|
|
||||||
<a href="https://techblog.babyl.ca">Yanick Champoux</a>
|
<a href="https://techblog.babyl.ca">Yanick Champoux</a>
|
||||||
. Code available on
|
. Code available on
|
||||||
<!-- TODO read the url from package.json -->
|
|
||||||
<a href={import.meta.env.HOMEPAGE}>my Gitea instance</a>.
|
<a href={import.meta.env.HOMEPAGE}>my Gitea instance</a>.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<p>Found a bug? You can report it <a href={import.meta.env.BUGS}>here</a>.</p>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
h2 {
|
h2 {
|
||||||
margin-bottom: 1.5rem;
|
margin-bottom: 1.5rem;
|
||||||
|
@ -1 +1,2 @@
|
|||||||
export const prerender = true;
|
export const prerender = true;
|
||||||
|
export const trailingSlash = "always";
|
||||||
|
@ -3,10 +3,12 @@ import adapter from "@sveltejs/adapter-static";
|
|||||||
|
|
||||||
/** @type {import('@sveltejs/kit').Config} */
|
/** @type {import('@sveltejs/kit').Config} */
|
||||||
const config = {
|
const config = {
|
||||||
preprocess: preprocess(),
|
preprocess: preprocess(),
|
||||||
kit: {
|
kit: {
|
||||||
adapter: adapter({}),
|
adapter: adapter({
|
||||||
},
|
fallback: "index.html",
|
||||||
|
}),
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
export default config;
|
||||||
|
@ -11,6 +11,7 @@ const config = {
|
|||||||
define: {
|
define: {
|
||||||
"import.meta.env.PACKAGE_VERSION": JSON.stringify(packageJson.version),
|
"import.meta.env.PACKAGE_VERSION": JSON.stringify(packageJson.version),
|
||||||
"import.meta.env.HOMEPAGE": JSON.stringify(packageJson.homepage),
|
"import.meta.env.HOMEPAGE": JSON.stringify(packageJson.homepage),
|
||||||
|
"import.meta.env.BUGS": JSON.stringify(packageJson.bugs.url),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user