From abdaf4e63d569c99d42f81b88ea720816ad92733 Mon Sep 17 00:00:00 2001 From: timothycarambat <rambat1010@gmail.com> Date: Thu, 8 Jun 2023 12:49:33 -0700 Subject: [PATCH] add ENV var for api endpoint for frontend --- frontend/src/utils/constants.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/utils/constants.js b/frontend/src/utils/constants.js index 6348276bd..0a15df4ad 100644 --- a/frontend/src/utils/constants.js +++ b/frontend/src/utils/constants.js @@ -1,2 +1,2 @@ export const API_BASE = - import.meta.env.VITE_ENABLE_GOOGLE_AUTH || "http://localhost:5000"; + import.meta.env.VITE_API_BASE || "http://localhost:5000"; diff --git a/package.json b/package.json index 953ea9f0a..33d7d673b 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "dev:server": "cd server && yarn dev", "dev:frontend": "cd frontend && yarn start", "prod:server": "cd server && yarn start", - "prod:frontend": "cd frontend && yarn start" + "prod:frontend": "cd frontend && yarn build" }, "private": false } \ No newline at end of file -- GitLab