Skip to content

Commit 0009ad8

Browse files
authored
fix: set 127.0.0.1 as default host in Vite (#942)
1 parent 38e0532 commit 0009ad8

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

templates/template-preact/vite.config.js.lte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default defineConfig(async () => ({
1515
server: {
1616
port: 1420,
1717
strictPort: true,{% if v2 %}
18-
host: host || false,
18+
host: host || "127.0.0.1",
1919
hmr: host
2020
? {
2121
protocol: "ws",

templates/template-react/vite.config.js.lte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default defineConfig(async () => ({
1515
server: {
1616
port: 1420,
1717
strictPort: true,{% if v2 %}
18-
host: host || false,
18+
host: host || "127.0.0.1",
1919
hmr: host
2020
? {
2121
protocol: "ws",

templates/template-solid/vite.config.js.lte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default defineConfig(async () => ({
1515
server: {
1616
port: 1420,
1717
strictPort: true,{% if v2 %}
18-
host: host || false,
18+
host: host || "127.0.0.1",
1919
hmr: host
2020
? {
2121
protocol: "ws",

templates/template-svelte-ts/vite.config.js.lte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default defineConfig(async () => ({
1616
server: {
1717
port: 1420,
1818
strictPort: true,{% if v2 %}
19-
host: host || false,
19+
host: host || "127.0.0.1",
2020
hmr: host
2121
? {
2222
protocol: "ws",

templates/template-svelte/vite.config.js.lte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default defineConfig(async () => ({
1616
server: {
1717
port: 1420,
1818
strictPort: true,{% if v2 %}
19-
host: host || false,
19+
host: host || "127.0.0.1",
2020
hmr: host
2121
? {
2222
protocol: "ws",

templates/template-vue/vite.config.js.lte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default defineConfig(async () => ({
1515
server: {
1616
port: 1420,
1717
strictPort: true,{% if v2 %}
18-
host: host || false,
18+
host: host || "127.0.0.1",
1919
hmr: host
2020
? {
2121
protocol: "ws",

0 commit comments

Comments
 (0)