diff --git a/Dockerfile b/Dockerfile index a5ea0e9..3ab471c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,12 +11,14 @@ RUN bun build src/index.ts --outdir ./dist --target bun FROM node:20-alpine AS frontend-builder ARG VITE_GIT_URL=https://git.kropa.tech/lotherk/deardiary +ARG VITE_WEBSITE_URL=https://deardiary.lother.io WORKDIR /app/frontend COPY frontend/package*.json ./ RUN npm install COPY frontend ./ ENV VITE_GIT_URL=$VITE_GIT_URL +ENV VITE_WEBSITE_URL=$VITE_WEBSITE_URL RUN npm run build FROM oven/bun:1.1-alpine AS runner diff --git a/docker-compose.yml b/docker-compose.yml index 21dd03c..b4c38e0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,7 +7,7 @@ services: - "8080:80" environment: - APP_URL=${WEBSITE_APP_URL:-http://localhost:3000} - - GIT_URL=${GIT_URL:-https://github.com/lotherk/deardiary} + - GIT_URL=${GIT_URL:-https://git.kropa.tech/lotherk/deardiary} restart: unless-stopped app: @@ -16,6 +16,7 @@ services: dockerfile: Dockerfile args: - VITE_GIT_URL=${GIT_URL:-https://git.kropa.tech/lotherk/deardiary} + - VITE_WEBSITE_URL=${WEBSITE_APP_URL:-http://localhost:3000} ports: - "3000:80" environment: diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index f4d877a..32e00cb 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -81,7 +81,7 @@ function Footer({ appName = 'DearDiary' }: { appName?: string }) { const { resolvedTheme } = useTheme(); return ( ); } diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 576508e..c97e356 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -17,6 +17,7 @@ export default defineConfig(({ mode }) => { }, define: { 'import.meta.env.VITE_GIT_URL': JSON.stringify(env.VITE_GIT_URL || 'https://git.kropa.tech/lotherk/deardiary'), + 'import.meta.env.VITE_WEBSITE_URL': JSON.stringify(env.VITE_WEBSITE_URL || 'https://deardiary.lother.io'), }, }; }); diff --git a/www/index.html b/www/index.html index ad61496..0f26571 100644 --- a/www/index.html +++ b/www/index.html @@ -19,7 +19,7 @@ Features Docs Git Repository - Join Free Alpha + Join Free Alpha @@ -29,7 +29,7 @@
Capture events throughout the day and let AI transform them into beautiful, thoughtful diary pages. Self-hosted. Private. Yours.
@@ -135,7 +135,7 @@ Features Documentation How it Works - Free Alpha + Free Alpha