diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d39f022..8eeaacd 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,7 +25,7 @@ jobs: context: . file: ./Dockerfile push: true - tags: azpect3120/potion.gophernest:latest + tags: azpect3120/potion.backend:latest - name: Build and push frontend Docker image uses: docker/build-push-action@v5 @@ -36,5 +36,3 @@ jobs: tags: azpect3120/potion.frontend:latest build-args: | VITE_ENVIRONMENT=prod - VITE_DOMAIN_DEV=http://localhost:3000 - VITE_DOMAIN_PROD=https://potion-backend.gophernest.net diff --git a/web/Dockerfile b/web/Dockerfile index 99fc94d..5d08817 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -7,14 +7,9 @@ RUN npm install COPY . . -# Build-time config: defaults are prod-safe, can be overridden if needed +# Build-time config: just env selector ARG VITE_ENVIRONMENT=prod -ARG VITE_DOMAIN_DEV=http://localhost:3000 -ARG VITE_DOMAIN_PROD=https://potion-backend.gophernest.net - ENV VITE_ENVIRONMENT=$VITE_ENVIRONMENT -ENV VITE_DOMAIN_DEV=$VITE_DOMAIN_DEV -ENV VITE_DOMAIN_PROD=$VITE_DOMAIN_PROD RUN npm run build diff --git a/web/src/components/inputs/RecipeSearchBar.tsx b/web/src/components/inputs/RecipeSearchBar.tsx index f387064..8a7e914 100644 --- a/web/src/components/inputs/RecipeSearchBar.tsx +++ b/web/src/components/inputs/RecipeSearchBar.tsx @@ -86,7 +86,7 @@ export default function RecipeSearchBar({ redirect, searchOnLoad, favorites, set return (
void searchHandler(e)}> -
+