MCPcopy
hub / github.com/redwoodjs/graphql / getAPIPort

Function getAPIPort

packages/api-server/src/cliHelpers.ts:10–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8}
9
10export function getAPIPort() {
11 return process.env.REDWOOD_API_PORT
12 ? parseInt(process.env.REDWOOD_API_PORT)
13 : getConfig().api.port
14}
15
16export function getWebHost() {
17 let host = process.env.REDWOOD_WEB_HOST

Callers 4

bothServerFileHandlerFunction · 0.90
handlerFunction · 0.90
handlerFunction · 0.90
resolveOptionsFunction · 0.90

Calls 1

getConfigFunction · 0.90

Tested by

no test coverage detected