Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/helpers/src/environment.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const { NEXT_PHASE, NEXT_PUBLIC_VERCEL_ENV, VERCEL } = process.env;
const NEXT_PHASE = process.env.NEXT_PHASE;
const NEXT_PUBLIC_VERCEL_ENV = process.env.NEXT_PUBLIC_VERCEL_ENV;
const VERCEL = process.env.VERCEL;

export const isBuildTime = NEXT_PHASE === 'phase-production-build';

Expand Down
4 changes: 3 additions & 1 deletion packages/helpers/src/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ export const trustedDomains = [webserverDomain, ...externalTrustedDomains.filter
* @returns {string} The resolved base URL.
*/
export function getBaseUrl() {
const { NEXT_PUBLIC_VERCEL_URL, NEXT_PUBLIC_WEBSERVER_HOST, NEXT_PUBLIC_WEBSERVER_PORT } = process.env;
const NEXT_PUBLIC_VERCEL_URL = process.env.NEXT_PUBLIC_VERCEL_URL;
const NEXT_PUBLIC_WEBSERVER_HOST = process.env.NEXT_PUBLIC_WEBSERVER_HOST;
const NEXT_PUBLIC_WEBSERVER_PORT = process.env.NEXT_PUBLIC_WEBSERVER_PORT;

const protocol = isServerlessRuntime ? 'https' : 'http';

Expand Down
Loading