royanger
royanger
Explore posts from servers
PD🧩 Plasmo Developers
Created by royanger on 8/14/2024 in #👟framework
Default port and `--serve-port`
Hey framework team. Your docs indicate that the default port is 1012, but my dev server appears to be using 1816 or 6XXXX. The second port changes each time I run the dev server, so I see 63858, 63890, 64191. When I run my Plasmo dev server and then do sudo lsof -i -P | grep LISTEN | grep :$PORT those two ports, plus the expected 1815 for HMR, are the only new ports listed. Secondarily, when I add plasmo dev --serve-host=localhost --serve-port-1012 to my package.json scripts (or another port like 8080) appears to have no effect. I still see 1815, 1816 and 6XXXX. For example, I have "dev": "plasmo dev --serve-host=localhost --serve-port-1012", in my package.json and just ran pnpm dev and the ports are 1815m 1816 and 64191
3 replies