fix: set 127.0.0.1 as default host in Vite (#942)

This commit is contained in:
fan-tastic-z
2026-01-02 09:07:59 +08:00
committed by GitHub
parent 38e0532e17
commit 0009ad8251
6 changed files with 6 additions and 6 deletions

View File

@@ -15,7 +15,7 @@ export default defineConfig(async () => ({
server: {
port: 1420,
strictPort: true,{% if v2 %}
host: host || false,
host: host || "127.0.0.1",
hmr: host
? {
protocol: "ws",

View File

@@ -15,7 +15,7 @@ export default defineConfig(async () => ({
server: {
port: 1420,
strictPort: true,{% if v2 %}
host: host || false,
host: host || "127.0.0.1",
hmr: host
? {
protocol: "ws",

View File

@@ -15,7 +15,7 @@ export default defineConfig(async () => ({
server: {
port: 1420,
strictPort: true,{% if v2 %}
host: host || false,
host: host || "127.0.0.1",
hmr: host
? {
protocol: "ws",

View File

@@ -16,7 +16,7 @@ export default defineConfig(async () => ({
server: {
port: 1420,
strictPort: true,{% if v2 %}
host: host || false,
host: host || "127.0.0.1",
hmr: host
? {
protocol: "ws",

View File

@@ -16,7 +16,7 @@ export default defineConfig(async () => ({
server: {
port: 1420,
strictPort: true,{% if v2 %}
host: host || false,
host: host || "127.0.0.1",
hmr: host
? {
protocol: "ws",

View File

@@ -15,7 +15,7 @@ export default defineConfig(async () => ({
server: {
port: 1420,
strictPort: true,{% if v2 %}
host: host || false,
host: host || "127.0.0.1",
hmr: host
? {
protocol: "ws",