Skip to content

Commit

Permalink
Added the NODE_ENV environment variable to the client
Browse files Browse the repository at this point in the history
  • Loading branch information
PezhmanGhavami committed May 26, 2023
1 parent e045caf commit e31faab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
- name: Setting up client env variables
run: |
touch ./client/.env
echo NODE_ENV=${{ secrets.NODE_ENV }} >> ./client/.env
echo VITE_SOCKET_URL=${{ secrets.VITE_SOCKET_URL }} >> ./client/.env
- name: Installing client dependencies
run: npm ci --prefix ./client
Expand Down
4 changes: 3 additions & 1 deletion client/.env.example
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
VITE_SOCKET_URL="http://localhost:5000"
VITE_SOCKET_URL="http://localhost:5000"

NODE_ENV="development"

0 comments on commit e31faab

Please sign in to comment.