feat: 초기 프로젝트 설정 및 룰.md 파일 추가
This commit is contained in:
21
api.hyungi.net/node_modules/@pm2/js-api/constants.js
generated
vendored
Normal file
21
api.hyungi.net/node_modules/@pm2/js-api/constants.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
const pkg = require('./package.json')
|
||||
|
||||
const config = {
|
||||
headers: {
|
||||
'X-JS-API-Version': pkg.version
|
||||
},
|
||||
services: {
|
||||
API: 'https://api.keymetrics.io',
|
||||
OAUTH: 'https://id.keymetrics.io'
|
||||
},
|
||||
OAUTH_AUTHORIZE_ENDPOINT: '/api/oauth/authorize',
|
||||
OAUTH_CLIENT_ID: '795984050',
|
||||
ENVIRONNEMENT: process && process.versions && process.versions.node ? 'node' : 'browser',
|
||||
VERSION: pkg.version,
|
||||
// put in debug when using km.io with browser OR when DEBUG=true with nodejs
|
||||
IS_DEBUG: (typeof window !== 'undefined' && window.location.host.match(/km.(io|local)/)) ||
|
||||
(typeof process !== 'undefined' && (process.env.DEBUG === 'true'))
|
||||
}
|
||||
|
||||
module.exports = Object.assign({}, config)
|
||||
Reference in New Issue
Block a user