Skip to content

Commit 3175f48

Browse files
authored
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
1 parent 0f34e57 commit 3175f48

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/server.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ export default async function serve(port) {
3636
async function verifyStartup(ws, port) {
3737
await new Promise((resolve, reject) => {
3838
ws.server.on("listening", () => {
39-
console.log(`Server started on http://localhost:${port}`);
39+
console.log("Server started:");
40+
console.log(` http://localhost:${port}`);
41+
console.log(` http://localhost:${port}?developerMode`);
42+
console.log("");
4043
resolve();
4144
});
4245
ws.server.on("error", (e) => {

0 commit comments

Comments
 (0)