Skip to content

Commit

Permalink
fix: Use vite's new default port 5173 in devPath (#81)
Browse files Browse the repository at this point in the history
* fix: Use vite's new default port 5173 in devPath

* add changefile
  • Loading branch information
FabianLars authored Jul 13, 2022
1 parent bac6d16 commit ef82e5e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changes/default-vite-port.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

---
"create-tauri-app": patch
---

Update the vite recipe to use port 5173, the new default in vite@v3.
2 changes: 1 addition & 1 deletion src/recipes/vite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const vite: Recipe = {
configUpdate: ({ cfg, packageManager }) => ({
...cfg,
distDir: `../dist`,
devPath: 'http://localhost:3000',
devPath: 'http://localhost:5173',
beforeDevCommand: `${
packageManager.name === 'npm' ? 'npm run' : packageManager.name
} dev`,
Expand Down

0 comments on commit ef82e5e

Please sign in to comment.