Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
15 lines
571 B
Plaintext
15 lines
571 B
Plaintext
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
|
/**
|
|
* Returns an environment setting value determined by Vercel's `VERCEL_ENV` environment variable.
|
|
*
|
|
* @param isClient Flag to indicate whether to use the `NEXT_PUBLIC_` prefixed version of the environment variable.
|
|
*/
|
|
function getVercelEnv(isClient) {
|
|
const vercelEnvVar = isClient ? process.env.NEXT_PUBLIC_VERCEL_ENV : process.env.VERCEL_ENV;
|
|
return vercelEnvVar ? `vercel-${vercelEnvVar}` : undefined;
|
|
}
|
|
|
|
exports.getVercelEnv = getVercelEnv;
|
|
//# sourceMappingURL=getVercelEnv.js.map
|