(variable = '')
| 305 | * APOLLO_SERVER_CORS_WHITELIST=http://localhost:5000,https://www.my-client.org |
| 306 | * => parse the string and makes it an array |
| 307 | * @param {*} variable Env array variables, with values separated by a comma (spaces allowed) |
| 308 | */ |
| 309 | export const parseEnvVariableArray = (variable = '') => { |
| 310 | if (!variable) return [] |
| 311 | return variable.split(',').map(s => s.trim()) |
| 312 | } |
| 313 |
no outgoing calls
no test coverage detected