Skip to content

Commit a355157

Browse files
committed
refactor: changed default live reloading port to 3100
To my knowledge, this is usually free, but changing this isn't a breaking change, so it's no big deal.
1 parent 4cf292f commit a355157

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/perseus-cli/src/reload_server.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ pub fn order_reload() {
100100
/// Gets the host and port to run the reload server on.
101101
fn get_reload_server_host_and_port() -> (String, u16) {
102102
let host = env::var("PERSEUS_RELOAD_SERVER_HOST").unwrap_or_else(|_| "localhost".to_string());
103-
let port = env::var("PERSEUS_RELOAD_SERVER_PORT").unwrap_or_else(|_| "8090".to_string());
103+
let port = env::var("PERSEUS_RELOAD_SERVER_PORT").unwrap_or_else(|_| "3100".to_string());
104104
let port = port
105105
.parse::<u16>()
106106
.expect("reload server port must be a number");

packages/perseus/src/server/html_shell.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ impl<'a> HtmlShell<'a> {
9696
let host =
9797
env::var("PERSEUS_RELOAD_SERVER_HOST").unwrap_or_else(|_| "localhost".to_string());
9898
let port =
99-
env::var("PERSEUS_RELOAD_SERVER_PORT").unwrap_or_else(|_| "8090".to_string());
99+
env::var("PERSEUS_RELOAD_SERVER_PORT").unwrap_or_else(|_| "3100".to_string());
100100
scripts_before_boundary
101101
.push(format!("window.__PERSEUS_RELOAD_SERVER_HOST = '{}'", host).into());
102102
scripts_before_boundary

0 commit comments

Comments
 (0)