Files
novarix.uk/node_modules/next/dist/esm/shared/lib/deployment-id.js
T
Kismet Hasanaj 39a8a128be including-modules
2026-05-03 00:14:08 +02:00

14 lines
476 B
JavaScript

// This could also be a variable instead of a function, but some unit tests want to change the ID at
// runtime. Even though that would never happen in a real deployment.
export function getDeploymentId() {
return process.env.NEXT_DEPLOYMENT_ID;
}
export function getDeploymentIdQueryOrEmptyString() {
let deploymentId = getDeploymentId();
if (deploymentId) {
return `?dpl=${deploymentId}`;
}
return '';
}
//# sourceMappingURL=deployment-id.js.map