diff --git a/Dockerfile b/Dockerfile index 902ac95..7cf8099 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,5 +27,4 @@ EXPOSE 3000 HEALTHCHECK --interval=30s --timeout=5s --start-period=60s --retries=3 \ CMD curl -f http://localhost:3000/health || exit 1 -# ENTRYPOINT ["bun", "/var/www/site/index.js"] -ENTRYPOINT ["bun", "run", "dev"] +ENTRYPOINT ["bun", "/var/www/site/index.js"] diff --git a/src/hooks.client.js b/src/hooks.client.js deleted file mode 100644 index 1e41561..0000000 --- a/src/hooks.client.js +++ /dev/null @@ -1,6 +0,0 @@ -export const handleError = ({ error, event }) => { - if (event.url.pathname.startsWith("/repo")) { - window.location.href = event.url.pathname; - return; - } -}; diff --git a/src/hooks.server.js b/src/hooks.server.js deleted file mode 100644 index 951880a..0000000 --- a/src/hooks.server.js +++ /dev/null @@ -1,12 +0,0 @@ -export const handle = async ({ event, resolve }) => { - // Paths to be handled by proxy - const proxyPaths = ["/repo"]; - - if (proxyPaths.some(path => event.url.pathname.startsWith(path))) { - // completely skip sveltekit routing - return; - } - - // Let SvelteKit handle other paths - return resolve(event); -}; diff --git a/src/lib/navigation.js b/src/lib/navigation.js index 984b223..09e6804 100644 --- a/src/lib/navigation.js +++ b/src/lib/navigation.js @@ -5,12 +5,6 @@ export const navigation = { toHome: () => goto("/"), toAbout: () => goto("/about"), toContact: () => goto("/contact"), - toRepository: () => { - console.log("Entering '/lib/navigation.js'.toRepository"); - goto("/repo"); - console.log("Exiting '/lib/navigation.js'.toRepository"); - }, - to404: () => { - throw error(404, 'Page not found'); - } + toRepository: () => goto("/repo"), + to404: () => { throw error(404, 'Page not found') }, }; diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 77a6ca0..4fd4c96 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -4,15 +4,6 @@ import "$lib/styles/styles.css"; import "$lib/styles/vars.css"; - import { beforeNavigate } from "$app/navigation"; - - beforeNavigate(({ to, cancel }) => { - if (to?.url.pathname.startsWith("/repo")) { - cancel(); - window.location.href = to.url.pathname; - } - }); - let { children } = $props(); diff --git a/src/routes/Splash.svelte b/src/routes/Splash.svelte index 36633fa..e9cf263 100644 --- a/src/routes/Splash.svelte +++ b/src/routes/Splash.svelte @@ -3,8 +3,6 @@ import Button from "$lib/components/Button.svelte"; import { navigation } from "$lib/navigation"; - - console.log("Serving splash page");