Disable script in production

GitOrigin-RevId: 81fe077a5816a23fa20c78a6271fbdf62021e3b2
This commit is contained in:
Andrew Rumble
2025-06-10 15:41:19 +01:00
committed by Copybot
parent b946c2abff
commit 07b47606c1

View File

@@ -181,6 +181,13 @@ const setup = () => {
}
}
if (process.env.NODE_ENV !== 'development') {
console.warn(
'This script can cause issues with manually amended subscriptions and can also exhaust our rate-limit with Recurly so is not intended to be run in production. Please use it in development environments only.'
)
process.exit(1)
}
setup()
await run()
process.exit()