diff --git a/backend/src/index.js b/backend/src/index.js index 0c04a6c693b3a267ab9fd0bf5ff3a936b3ff19ef..be2e683a33ccf880c189b7673fae714e7f22f445 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 df0c546c383b60249a5178fc3d34fd2392997e8f..61baf5e41e453da9c9c9bb9a769ecbbb148b56d9 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