From 070ea1f0ac7e37a02359def489a3063cdd5c9fb3 Mon Sep 17 00:00:00 2001
From: Hyun Woo Jeong <jhw0714@ajou.ac.kr>
Date: Wed, 15 Nov 2023 02:16:03 +0900
Subject: [PATCH] implement frondend google OAuth

---
 backend/src/index.js  | 7 ++++---
 frontend/src/index.js | 5 -----
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/backend/src/index.js b/backend/src/index.js
index 0c04a6c6..be2e683a 100644
--- a/backend/src/index.js
+++ b/backend/src/index.js
@@ -4,18 +4,19 @@ import path from 'path'
 import process from 'process'
 
 const app = express();
-const PORT = 3001;
+const PORT = 8080;
 
 console.log(path.join(process.cwd(), '../frontend/build'))
 
-//app.use(express.static(path.join(__dirname, 'public')))
+app.use(express.static(path.join(process.cwd(), '../frontend/build')))
 
 app.use(express.json());
 app.use(express.urlencoded({ extended: false }));
 app.use(cors());
 
 app.get('/', function (req, res) {
-  res.sendFile(path.join(process.cwd(), '../frontend/build/index.html'));
+	console.log(path.join(process.cwd(), '../frontend/build/index.html'))
+	res.sendFile(path.join(process.cwd(), '../frontend/build/index.html'));
 });
 
 
diff --git a/frontend/src/index.js b/frontend/src/index.js
index df0c546c..61baf5e4 100644
--- a/frontend/src/index.js
+++ b/frontend/src/index.js
@@ -14,8 +14,3 @@ root.render(
     </BrowserRouter>
   </React.StrictMode>
 );
-
-/*
-716858812522-rb0pfisq317unkh4so5hvbu16p19kqp8.apps.googleusercontent.com
-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
-*/
\ No newline at end of file
-- 
GitLab