From 4637d2374e8eb16d5735f53ea85e62c6383d97f2 Mon Sep 17 00:00:00 2001 From: NoobTh Date: Tue, 27 Aug 2024 10:52:16 +0900 Subject: [PATCH] Update --- applications/client/src/App.js | 2 +- applications/client/src/config/apiconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/client/src/App.js b/applications/client/src/App.js index 933fc3e..8953b4d 100644 --- a/applications/client/src/App.js +++ b/applications/client/src/App.js @@ -1,7 +1,7 @@ import { useState, useEffect } from 'react'; import styles from './App.module.css'; -const API = require("./config/apiconfig.json").url; +const API = process.env.SERVER_URL; function Button({ text, handle, className, value, type, disabled }) { return ( diff --git a/applications/client/src/config/apiconfig.json b/applications/client/src/config/apiconfig.json index e77fb3f..885954a 100644 --- a/applications/client/src/config/apiconfig.json +++ b/applications/client/src/config/apiconfig.json @@ -1,3 +1,3 @@ { "url": "{{ SERVER URL }}" -} \ No newline at end of file +}