(conf?: ConfigEnv)
| 19 | } |
| 20 | |
| 21 | export async function init(conf?: ConfigEnv) { |
| 22 | setConfig( |
| 23 | Object.assign( |
| 24 | { |
| 25 | IS_PACKAGE: true, |
| 26 | }, |
| 27 | conf |
| 28 | ) |
| 29 | ); |
| 30 | app = (await import('@/app')).default; |
| 31 | } |
| 32 | |
| 33 | export async function request(path: RoutePath | (string & {})) { |
| 34 | ensureAppInitialized(app); |