diff --git a/api/available-routes.ts b/api/available-routes.ts index 2e86091f3..2d524787e 100644 --- a/api/available-routes.ts +++ b/api/available-routes.ts @@ -25,8 +25,7 @@ type AvailableRoutesQueryParams = Infer< const handler = async (_: any, response: VercelResponse) => { response.status(200).json({ - test: process.env.GIT_ENV_EXPORTED, - test2: process.env.REACT_APP_HUBPOOL_CHAINID, + test: process.env.REACT_APP_HUBPOOL_CHAINID, }); return; }; diff --git a/package.json b/package.json index 747a3d4e7..12e75efb6 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "scripts": { "start": "export REACT_APP_GIT_COMMIT_HASH=$(git rev-parse HEAD) && vite", "dev": "export REACT_APP_GIT_COMMIT_HASH=$(git rev-parse HEAD) && vite --port $PORT --host", - "build": "yarn prebuild-env && yarn prebuild && echo $GIT_ENV_EXPORTED && export REACT_APP_GIT_COMMIT_HASH=$(git rev-parse HEAD) && tsc && vite build", + "build": "yarn prebuild-env && yarn prebuild && source output_vercel_build.env && echo $GIT_ENV_EXPORTED && export REACT_APP_GIT_COMMIT_HASH=$(git rev-parse HEAD) && tsc && vite build", "prebuild": "tsx scripts/pre-build.ts", "prebuild-env": "./scripts/pre-build-env.sh", "analyze": "yarn build && rollup-plugin-visualizer --open ./bundle-size-analysis.json",