Skip to content

Commit

Permalink
change the localhost:3000 from the app file to env
Browse files Browse the repository at this point in the history
  • Loading branch information
hkmusameh01 committed Nov 11, 2022
1 parent f0a13ec commit ed3ed48
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@ const app: Application = express();
const server = http.createServer(app);
const io = new Server(server, {
cors: {
origin: 'http://localhost:3000',
origin: process.env.JACK_TRADES,
},
});
app.use(compression());
app.use(cookieParser());
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
ioHandler(io);
// eslint-disable-next-line max-len

app.use('/api/v1', router);
app.set('port', PORT || 8000);
Expand Down

0 comments on commit ed3ed48

Please sign in to comment.