List developerMode with npm run dev (#544)

This adds a little bit of convenience when developping locally.

Server started:
- http://localhost:8080
- http://localhost:8080?developerMode
This commit is contained in:
Camillo Bruni 2026-06-11 16:43:30 +02:00 committed by GitHub
parent 0f34e5752f
commit 3175f4851a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -36,7 +36,10 @@ export default async function serve(port) {
async function verifyStartup(ws, port) {
await new Promise((resolve, reject) => {
ws.server.on("listening", () => {
console.log(`Server started on http://localhost:${port}`);
console.log("Server started:");
console.log(` http://localhost:${port}`);
console.log(` http://localhost:${port}?developerMode`);
console.log("");
resolve();
});
ws.server.on("error", (e) => {