diff --git a/.gitpod.yml b/.gitpod.yml index 5452362c8349..64e812ec75e6 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -7,19 +7,17 @@ tasks: openMode: split-left before: | export RWFW_PATH="/workspace/redwood" - export RWJS_DEV_API_URL="http://localhost" init: | mkdir /workspace/rw-test-app command: | cd /workspace/rw-test-app - echo -e "\n\n\033[94m ======================================================" && echo -e "\n\033[33m ⌛ Please wait until the dev server is running on the right-side terminal. \n "rw-test-app" is being generated & linked with latest framework code. \n\nIf you make further changes to the framework..." && echo -e "1. \033[33mEnsure env vars are set \033[92m'export RWFW_PATH="/workspace/redwood" RWJS_DEV_API_URL="http://localhost"'\033[33m" && echo -e "2. \033[33mRun \033[92m'yarn rwfw project:sync'\033[33m to watch & sync changes into the test project" && echo -e "\n\033[94m ======================================================\n\n" + echo -e "\n\n\033[94m ======================================================" && echo -e "\n\033[33m ⌛ Please wait until the dev server is running on the right-side terminal. \n "rw-test-app" is being generated & linked with latest framework code. \n\nIf you make further changes to the framework..." && echo -e "1. \033[33mEnsure env vars are set \033[92m'export RWFW_PATH="/workspace/redwood"'\033[33m" && echo -e "2. \033[33mRun \033[92m'yarn rwfw project:sync'\033[33m to watch & sync changes into the test project" && echo -e "\n\033[94m ======================================================\n\n" - name: "Dev Servers" openMode: split-right before: | export RWFW_PATH="/workspace/redwood" - export RWJS_DEV_API_URL="http://localhost" export REDWOOD_DISABLE_TELEMETRY=1 init: | cd /workspace/redwood diff --git a/packages/core/config/webpack.development.js b/packages/core/config/webpack.development.js index 3cbf8d185efe..3d639e0f4ae5 100644 --- a/packages/core/config/webpack.development.js +++ b/packages/core/config/webpack.development.js @@ -16,7 +16,7 @@ const getProxyConfig = () => { // Redwood only proxies absolute paths. return { [apiUrl]: { - target: `${process.env.RWJS_DEV_API_URL ?? 'http://[::1]'}:${port}`, + target: `${process.env.RWJS_DEV_API_URL ?? 'http://localhost'}:${port}`, pathRewrite: { // Eg: Rewrite `/.netlify/functions/graphql` to `/graphql`, which the api-server expects [`^${escapeRegExp(apiUrl)}`]: '',