mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
feat(cli.rs): change inferred dev server port to 8080 for Svelte apps
This commit is contained in:
5
.changes/cli.rs-default-svelte-port.md
Normal file
5
.changes/cli.rs-default-svelte-port.md
Normal 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`).
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user