From effa4e4cf7cf366d3097ccba9a283437dcf23c0b Mon Sep 17 00:00:00 2001 From: jank Date: Wed, 10 Sep 2025 12:29:24 +0200 Subject: [PATCH] fix: Fix up some stuff --- .forgejo/workflows/build.yml | 8 ++++---- Dockerfile | 2 +- react-router.config.ts | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 9b6bbb4..cc042d4 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -24,8 +24,8 @@ jobs: - name: Archive production artifacts uses: actions/upload-artifact@v4 with: - name: dist - path: dist + name: build/client + path: build/client package: name: Package needs: build @@ -36,8 +36,8 @@ jobs: - name: Download build artifacts uses: actions/download-artifact@v4 with: - name: dist - path: dist + name: build/client + path: build/client - name: Build and push docker image uses: docker/build-push-action@v5 with: diff --git a/Dockerfile b/Dockerfile index 7b82aff..ba8d41e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ FROM nginx:stable-alpine -COPY dist /usr/share/nginx/html +COPY build/client /usr/share/nginx/html EXPOSE 80 CMD ["nginx", "-g", "daemon off;"] diff --git a/react-router.config.ts b/react-router.config.ts index 6ff16f9..b8b143a 100644 --- a/react-router.config.ts +++ b/react-router.config.ts @@ -3,5 +3,5 @@ import type { Config } from "@react-router/dev/config"; export default { // Config options... // Server-side render by default, to enable SPA mode set this to `false` - ssr: true, + ssr: false, } satisfies Config;