Skip to content

Commit

Permalink
feat(cli.rs): change inferred dev server port to 8080 for Svelte apps
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog committed Feb 5, 2022
1 parent a017fbc commit de0543f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/cli.rs-default-svelte-port.md
Original file line number Diff line number Diff line change
@@ -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`).
2 changes: 1 addition & 1 deletion tooling/cli.rs/src/helpers/framework.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit de0543f

Please sign in to comment.