diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..9414382 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +Dockerfile diff --git a/Dockerfile b/Dockerfile index 6f72739..38258be 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,3 +13,6 @@ RUN pnpm run build FROM ghcr.io/static-web-server/static-web-server:latest WORKDIR / COPY --from=Builder /app/build /public +# ENV SERVER_REDIRECT_TRAILING_SLASH=false +# ENTRYPOINT ["/static-web-server"] +CMD ["--redirect-trailing-slash", "true"] diff --git a/compose.yaml b/compose.yaml index 0ffa082..d095cc5 100644 --- a/compose.yaml +++ b/compose.yaml @@ -2,4 +2,4 @@ services: website: build: . ports: - - "80:80" + - "5127:80" diff --git a/svelte.config.ts b/svelte.config.ts index dd5b869..cb1b76c 100644 --- a/svelte.config.ts +++ b/svelte.config.ts @@ -5,6 +5,7 @@ import { mdsvex } from "mdsvex"; /** @type {import('@sveltejs/kit').Config} */ const config = { + base: '', extensions: [".svelte", ".md"], emitCss: true, preprocess: [