mirror of
https://github.com/harness/drone.git
synced 2025-05-04 22:33:36 +08:00
17 lines
389 B
JavaScript
17 lines
389 B
JavaScript
require('dotenv').config()
|
|
|
|
const baseUrl = process.env.BASE_URL ?? 'https://qa.harness.io/gateway'
|
|
const targetLocalHost = JSON.parse(process.env.TARGET_LOCALHOST || 'true')
|
|
|
|
const DEV = process.env.NODE_ENV === 'development'
|
|
|
|
if (DEV) {
|
|
console.table({ baseUrl, targetLocalHost })
|
|
}
|
|
|
|
module.exports = {
|
|
'/api': {
|
|
target: targetLocalHost ? 'http://localhost:3000' : baseUrl
|
|
}
|
|
}
|