mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-13 16:22:59 +10:00
fix url host parsing
This commit is contained in:
@ -37,7 +37,7 @@ const main = async () => {
|
|||||||
// URLs
|
// URLs
|
||||||
// If running in a Gitpod environment, auto generated the URLs
|
// If running in a Gitpod environment, auto generated the URLs
|
||||||
if (process.env.GITPOD_WORKSPACE_URL) {
|
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_SERVER_URL'] = `https://3100-${baseUrl}`;
|
||||||
envMap['PUBLIC_URL'] = `https://3000-${baseUrl}`;
|
envMap['PUBLIC_URL'] = `https://3000-${baseUrl}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user