Skip to content

Commit 765ca60

Browse files
committed
Add default target
1 parent 87c7cf6 commit 765ca60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dotenv.config({ path: __dirname+'/../.env' });
2525

2626
app.use('/:prefix/api',
2727
createProxyMiddleware({
28-
target: process.env.SERVER_ENDPOINT,
28+
target: process.env.SERVER_ENDPOINT || "http://localhost:6363",
2929
changeOrigin: false,
3030
// onProxyRes: onProxyRes,
3131
pathRewrite: {
@@ -73,4 +73,4 @@ console.log(
7373
"OpenAPI documentation available in http://localhost:3035/api-documentation"
7474
);
7575

76-
//module.exports = app;
76+
//module.exports = app;

0 commit comments

Comments
 (0)