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

This commit is contained in:
Lucas Nogueira
2022-02-05 15:12:36 -03:00
parent a017fbc71d
commit de0543f3e0
2 changed files with 6 additions and 1 deletions

View File

@@ -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`).

View File

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