mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-21 01:34:22 +01:00
big format
This commit is contained in:
@@ -28,13 +28,17 @@ export async function createOpencodeServer(options?: ServerOptions) {
|
||||
options ?? {},
|
||||
)
|
||||
|
||||
const proc = spawn(`opencode`, [`serve`, `--hostname=${options.hostname}`, `--port=${options.port}`], {
|
||||
signal: options.signal,
|
||||
env: {
|
||||
...process.env,
|
||||
OPENCODE_CONFIG_CONTENT: JSON.stringify(options.config ?? {}),
|
||||
const proc = spawn(
|
||||
`opencode`,
|
||||
[`serve`, `--hostname=${options.hostname}`, `--port=${options.port}`],
|
||||
{
|
||||
signal: options.signal,
|
||||
env: {
|
||||
...process.env,
|
||||
OPENCODE_CONFIG_CONTENT: JSON.stringify(options.config ?? {}),
|
||||
},
|
||||
},
|
||||
})
|
||||
)
|
||||
|
||||
const url = await new Promise<string>((resolve, reject) => {
|
||||
const id = setTimeout(() => {
|
||||
|
||||
Reference in New Issue
Block a user