Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

fix url host parsing

Amruth Pillai1919d79e4359
diff --git a/scripts/generate-env.ts b/scripts/generate-env.ts
index 401eb024b..d1db2ac22 100644
--- a/scripts/generate-env.ts
+++ b/scripts/generate-env.ts
@@ -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}`;