mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Disable script in production
GitOrigin-RevId: 81fe077a5816a23fa20c78a6271fbdf62021e3b2
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user