mirror of
https://github.com/badges/shields.git
synced 2025-04-18 19:44:04 +03:00
* add ability to store token pool in Postgres DB * update transitive ansi-regex dependencies
12 lines
246 B
JavaScript
12 lines
246 B
JavaScript
import configModule from 'config'
|
|
const config = configModule.util.toObject()
|
|
|
|
const postgresUrl = config?.private?.postgres_url
|
|
|
|
if (!postgresUrl) {
|
|
process.exit(1)
|
|
}
|
|
|
|
process.stdout.write(JSON.stringify({ url: postgresUrl }))
|
|
process.exit(0)
|