Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/core/webview/ClineProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1532,7 +1532,7 @@
console.error("[ClineProvider:Vite] Failed to read Vite port file:", err)
}

const localServerUrl = `localhost:${localPort}`
const localServerUrl = `127.0.0.1:${localPort}`

Check failure on line 1535 in src/core/webview/ClineProvider.ts

View workflow job for this annotation

GitHub Actions / mutation-diff

Mutation test gap

Survived StringLiteral mutant (replacement: ``). See the job summary for the complete list and resolution guidance.

Check failure on line 1535 in src/core/webview/ClineProvider.ts

View workflow job for this annotation

GitHub Actions / mutation-diff

Mutation test gap

Survived StringLiteral mutant (replacement: ``). See the job summary for the complete list and resolution guidance.

// Check if local dev server is running.
try {
Expand Down Expand Up @@ -1571,7 +1571,7 @@

const reactRefresh = /*html*/ `
<script nonce="${nonce}" type="module">
import RefreshRuntime from "http://localhost:${localPort}/@react-refresh"
import RefreshRuntime from "http://127.0.0.1:${localPort}/@react-refresh"
RefreshRuntime.injectIntoGlobalHook(window)
window.$RefreshReg$ = () => {}
window.$RefreshSig$ = () => (type) => type
Expand Down
6 changes: 4 additions & 2 deletions webview-ui/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,10 @@ export default defineConfig(({ mode }) => {
},
},
server: {
hmr: {
host: "localhost",
hmr: true,
host: "127.0.0.1",
port: 5173,
ws: {
protocol: "ws",
},
cors: {
Expand Down
Loading