Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .env.production.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# FRONTEND
APP_ENV=PRODUCTION
NEXT_PUBLIC_BACKEND_URL="https://robodrone.codersforcauses.com/api"
NEXT_PUBLIC_BACKEND_URL="https://robodrone.codersforcauses.org/api"


# BACKEND
Expand All @@ -19,4 +19,4 @@ DJANGO_SUPERUSER_PASSWORD= CHANGE THIS TO A RANDOM STRING
DJANGO_SUPERUSER_EMAIL= CHANGE THIS TO A VALID EMAIL
DJANGO_SUPERUSER_USERNAME= CHANGE THIS TO A VALID USERNAME

FRONTEND_URL="https://robodrone.codersforcauses.com/"
FRONTEND_URL="https://robodrone.codersforcauses.org/"
2 changes: 2 additions & 0 deletions .github/workflows/cd-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64,linux/arm64
build-args: |
NEXT_PUBLIC_BACKEND_URL=https://robodrone.codersforcauses.org/api

- name: Output client image name
if: github.event_name != 'pull_request'
Expand Down
4 changes: 4 additions & 0 deletions docker/client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ COPY ./client/package.json ./client/package-lock.json ./
# Install ALL Dependencies
RUN npm install

# Accept build arg
ARG NEXT_PUBLIC_BACKEND_URL
ENV NEXT_PUBLIC_BACKEND_URL=$NEXT_PUBLIC_BACKEND_URL

# Copy Application code into a directory called `app`
COPY ./client /app

Expand Down