Ver código fonte

feat(cli.rs): change inferred dev server port to 8080 for Svelte apps

Lucas Nogueira 3 anos atrás
pai
commit
de0543f3e0

+ 5 - 0
.changes/cli.rs-default-svelte-port.md

@@ -0,0 +1,5 @@
+---
+"cli.rs": patch
+---
+
+The inferred development server port for Svelte is now `8080` (assumes latest Svelte with `sirv-cli >= 2.0.0`).

+ 1 - 1
tooling/cli.rs/src/helpers/framework.rs

@@ -21,7 +21,7 @@ pub enum Framework {
 impl Framework {
   pub fn dev_path(&self) -> String {
     match self {
-      Self::Svelte => "http://localhost:5000",
+      Self::Svelte => "http://localhost:8080",
       Self::Angular => "http://localhost:4200",
       Self::React => "http://localhost:3000",
       Self::Nextjs => "http://localhost:3000",