()
| 126 | export const ERR_CLOSED_SERVER = 'ERR_CLOSED_SERVER' |
| 127 | |
| 128 | export function throwClosedServerError(): never { |
| 129 | const err: any = new Error( |
| 130 | 'The server is being restarted or closed. Request is outdated', |
| 131 | ) |
| 132 | err.code = ERR_CLOSED_SERVER |
| 133 | // This error will be caught by the transform middleware that will |
| 134 | // send a 504 status code request timeout |
| 135 | throw err |
| 136 | } |
| 137 | |
| 138 | export interface PluginContainerOptions { |
| 139 | cwd?: string |
no outgoing calls
no test coverage detected