Skip to content

Commit

Permalink
chore: Add debug logging for URL generation environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Titou325 committed Feb 26, 2025
1 parent a291aaa commit 302fbb5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/studio/src/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ const BASE_URL =
"http://localhost:3000";

export const getURL = (path = "") => {
console.log({
NEXT_PUBLIC_VERCEL_ENV: process.env.NEXT_PUBLIC_VERCEL_ENV,
NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL:
process.env.NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL,
NEXT_PUBLIC_VERCEL_URL: process.env.NEXT_PUBLIC_VERCEL_URL,
BASE_URL: BASE_URL,
});

return new URL(path, BASE_URL).toString();
};

Expand Down

0 comments on commit 302fbb5

Please sign in to comment.