Skip to content

Commit 3d68bb0

Browse files
Added process.env.PORT to proxyApi
1 parent a15f2b0 commit 3d68bb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ export async function getTcM2mToken() {
299299
export async function proxyApi(url) {
300300
let base = '';
301301
if (isomorphy.isServerSide()) {
302-
base = 'http://localhost';
302+
base = `http://localhost:${process.env.PORT || 80}`;
303303
}
304304
const proxyUrl = `${base}/community-app-assets/api/proxy-get?url=${
305305
encodeURIComponent(url)

0 commit comments

Comments
 (0)