Skip to content

Commit

Permalink
Elimnado /api
Browse files Browse the repository at this point in the history
  • Loading branch information
UO264802 committed May 4, 2022
1 parent 2ff38de commit 65d7acb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions restapi/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
2 changes: 1 addition & 1 deletion webapp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 65d7acb

Please sign in to comment.