mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-14 03:54:46 +00:00
simpler wait-for-port
This commit is contained in:
@@ -88,8 +88,7 @@ export default async function exporter(export_dir: string) {
|
||||
});
|
||||
}
|
||||
|
||||
wait_for_port(port, () => {
|
||||
handle(new URL(origin)) // TODO all static routes
|
||||
.then(() => proc.kill())
|
||||
});
|
||||
wait_for_port(port)
|
||||
.then(() => handle(new URL(origin))) // TODO all static routes
|
||||
.then(() => proc.kill());
|
||||
}
|
||||
Reference in New Issue
Block a user