Skip to content

Commit

Permalink
tornar variavel de ambiente acessivel ao React
Browse files Browse the repository at this point in the history
  • Loading branch information
leomichalski committed Dec 1, 2023
1 parent 94ea7d6 commit c83ea74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/start.local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ set -o errexit
set -o pipefail
set -o nounset

export VITE_APP_BACKEND_URL=$BACKEND_URL

# npm run dev
vite --port 3000 --host 0.0.0.0
2 changes: 2 additions & 0 deletions frontend/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ set -o errexit
set -o pipefail
set -o nounset

export VITE_APP_BACKEND_URL=$BACKEND_URL

npm run build
# tsc
# vite build
Expand Down

0 comments on commit c83ea74

Please sign in to comment.