From a27118944889063de142e63c05cd4223f38f4db3 Mon Sep 17 00:00:00 2001 From: Ali BARIN Date: Sun, 26 Mar 2023 19:26:13 +0000 Subject: [PATCH] refactor(devcontainer): configure urls using localhost --- .devcontainer/boot.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.devcontainer/boot.sh b/.devcontainer/boot.sh index d2deaf1e..1c1af9e6 100644 --- a/.devcontainer/boot.sh +++ b/.devcontainer/boot.sh @@ -8,10 +8,8 @@ echo "Configuring backend environment variables..." cd packages/backend rm -rf .env echo " -HOST=localhost -PROTOCOL=http PORT=$BACKEND_PORT -WEB_APP_URL=https://$CODESPACE_NAME-$WEB_PORT.$GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN +WEB_APP_URL=http://localhost:$WEB_PORT APP_ENV=development POSTGRES_DATABASE=automatisch POSTGRES_PORT=5432 @@ -30,8 +28,7 @@ cd packages/web rm -rf .env echo " PORT=$WEB_PORT -REACT_APP_GRAPHQL_URL=https://$CODESPACE_NAME-$BACKEND_PORT.$GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN/graphql -REACT_APP_BASE_URL=https://$CODESPACE_NAME-$WEB_PORT.$GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN +REACT_APP_GRAPHQL_URL=http://localhost:$BACKEND_PORT/graphql REACT_APP_NOTIFICATIONS_URL=https://notifications.automatisch.io " >> .env cd $CURRENT_DIR