From 65d7acb1193ee0ae16e4d53d2c3e6da02e752612 Mon Sep 17 00:00:00 2001 From: UO264802 <71766858+UO264802@users.noreply.github.com> Date: Thu, 5 May 2022 01:38:32 +0200 Subject: [PATCH] Elimnado /api --- restapi/server.ts | 6 +++--- webapp/Dockerfile | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/restapi/server.ts b/restapi/server.ts index 274db5f..2e2f478 100644 --- a/restapi/server.ts +++ b/restapi/server.ts @@ -10,9 +10,9 @@ import api from "./api" const app: Application = express(); const port: number = 5000; -const options: cors.CorsOptions = { - origin: ['http://localhost:3000'] -}; +// const options: cors.CorsOptions = { +// origin: ['http://localhost:3000'] +// }; let bd = require('./utils/connectDB') diff --git a/webapp/Dockerfile b/webapp/Dockerfile index c504ae3..d28d1ca 100644 --- a/webapp/Dockerfile +++ b/webapp/Dockerfile @@ -7,7 +7,7 @@ RUN npm install #Create an optimized version of the webapp #ARG API_URI="http://localhost:5000/api" -ARG API_URI="54.242.225.248:5000/api" +ARG API_URI="54.242.225.248:5000" ENV REACT_APP_API_URI=$API_URI RUN npm run build