()
| 1 | import { getConfig } from '@redwoodjs/project-config' |
| 2 | |
| 3 | export function getAPIHost() { |
| 4 | let host = process.env.REDWOOD_API_HOST |
| 5 | host ??= getConfig().api.host |
| 6 | host ??= process.env.NODE_ENV === 'production' ? '0.0.0.0' : '::' |
| 7 | return host |
| 8 | } |
| 9 | |
| 10 | export function getAPIPort() { |
| 11 | return process.env.REDWOOD_API_PORT |
no test coverage detected