瀏覽代碼

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

Lucas Nogueira 3 年之前
父節點
當前提交
de0543f3e0
共有 2 個文件被更改,包括 6 次插入1 次删除
  1. 5 0
      .changes/cli.rs-default-svelte-port.md
  2. 1 1
      tooling/cli.rs/src/helpers/framework.rs

+ 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",