refactor(httpapi): fork server startup by flag (#24799)
This commit is contained in:
parent
3fa78a8b01
commit
7739cc53b4
1 changed files with 190 additions and 371 deletions
|
|
@ -127,7 +127,7 @@ export const layer = Layer.effect(
|
|||
Authorization: `Basic ${Buffer.from(`${Flag.OPENCODE_SERVER_USERNAME ?? "opencode"}:${Flag.OPENCODE_SERVER_PASSWORD}`).toString("base64")}`,
|
||||
}
|
||||
: undefined,
|
||||
fetch: async (...args) => (await Server.Default()).app.fetch(...args),
|
||||
fetch: async (...args) => Server.Default().app.fetch(...args),
|
||||
})
|
||||
const cfg = yield* config.get()
|
||||
const input: PluginInput = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue