diff --git a/Dockerfile b/Dockerfile index 38258be..7633a7f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,4 +15,4 @@ WORKDIR / COPY --from=Builder /app/build /public # ENV SERVER_REDIRECT_TRAILING_SLASH=false # ENTRYPOINT ["/static-web-server"] -CMD ["--redirect-trailing-slash", "true"] +# CMD ["--redirect-trailing-slash", "true"] diff --git a/flake.nix b/flake.nix index 72d315f..c040803 100644 --- a/flake.nix +++ b/flake.nix @@ -1,20 +1,22 @@ { description = "Flake description"; - outputs = - { self, nixpkgs }: - { - # setup the devShell for x86_64-linux. - devShell.x86_64-linux = - with nixpkgs.legacyPackages.x86_64-linux; - mkShell { - buildInputs = [ - pnpm - nodejs - ]; + outputs = { + self, + nixpkgs, + }: { + # setup the devShell for x86_64-linux. + devShell.x86_64-linux = with nixpkgs.legacyPackages.x86_64-linux; + mkShell { + buildInputs = [ + pnpm + nodejs + just + podman-compose + ]; - shellHook = '' - echo "mreow" - ''; - }; - }; + shellHook = '' + echo "mreow" + ''; + }; + }; } diff --git a/justfile b/justfile new file mode 100644 index 0000000..e92be01 --- /dev/null +++ b/justfile @@ -0,0 +1,11 @@ +build-dev: + docker build ./ --tag reg.h.doloro.co.uk/doloro/doloroweb:dev + +push-dev: + docker push reg.h.doloro.co.uk/doloro/doloroweb:dev + +build-latest: + docker build ./ --tag reg.h.doloro.co.uk/doloro/doloroweb:latest + +push-latest: build-latest + docker push reg.h.doloro.co.uk/doloro/doloroweb:latest diff --git a/src/lib/PostHelpers.svelte b/src/lib/PostHelpers.svelte index cc8e672..4fcfb1a 100644 --- a/src/lib/PostHelpers.svelte +++ b/src/lib/PostHelpers.svelte @@ -65,7 +65,7 @@ {#snippet PostCard(post: Post)} - +
{post.title} diff --git a/svelte.config.ts b/svelte.config.ts index cb1b76c..78b8750 100644 --- a/svelte.config.ts +++ b/svelte.config.ts @@ -28,12 +28,18 @@ const config = { mode: "scoped" }), ], + paths: { + relative: true, + }, kit: { alias: { 'src': './src/', }, + paths: { + relative: false, + }, files: { - assets: "./static", + // assets: "./static", }, adapter: adapter({ // default options are shown. On some platforms @@ -41,7 +47,7 @@ const config = { pages: 'build', assets: 'build', fallback: undefined, - precompress: false, + precompress: true, strict: true, }), },