mirror of
https://github.com/tauri-apps/create-tauri-app.git
synced 2026-01-31 00:45:16 +01:00
fix: set 127.0.0.1 as default host in Vite (#942)
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user