mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Removes the unstable prefix from `unstable_io`. Since this was only shipped in canaries with the unstable prefix we are going to just remove it without retaining the unstable prefix simultaneously.
8 lines
200 B
TypeScript
8 lines
200 B
TypeScript
const { PHASE_PRODUCTION_BUILD } = require('next/constants')
|
|
|
|
export function getSentinelValue() {
|
|
return process.env.NEXT_PHASE === PHASE_PRODUCTION_BUILD
|
|
? 'at buildtime'
|
|
: 'at runtime'
|
|
}
|