fix url host parsing

This commit is contained in:
Amruth Pillai
2022-12-16 15:50:43 +00:00
parent ab08cd9e34
commit 1919d79e43

View File

@ -37,7 +37,7 @@ const main = async () => {
// URLs
// If running in a Gitpod environment, auto generated the URLs
if (process.env.GITPOD_WORKSPACE_URL) {
const baseUrl = new URL(process.env.GITPOD_WORKSPACE_URL!);
const baseUrl = new URL(process.env.GITPOD_WORKSPACE_URL!).host;
envMap['PUBLIC_SERVER_URL'] = `https://3100-${baseUrl}`;
envMap['PUBLIC_URL'] = `https://3000-${baseUrl}`;