Skip to content

Commit ef82e5e

Browse files
authored
fix: Use vite's new default port 5173 in devPath (#81)
* fix: Use vite's new default port 5173 in devPath * add changefile
1 parent bac6d16 commit ef82e5e

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.changes/default-vite-port.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
---
3+
"create-tauri-app": patch
4+
---
5+
6+
Update the vite recipe to use port 5173, the new default in vite@v3.

src/recipes/vite.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const vite: Recipe = {
1515
configUpdate: ({ cfg, packageManager }) => ({
1616
...cfg,
1717
distDir: `../dist`,
18-
devPath: 'http://localhost:3000',
18+
devPath: 'http://localhost:5173',
1919
beforeDevCommand: `${
2020
packageManager.name === 'npm' ? 'npm run' : packageManager.name
2121
} dev`,

0 commit comments

Comments
 (0)