Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(server): Listen only to 127.0.0.1 by default #2977

Merged
merged 12 commits into from
May 5, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix(tests): Revert "fix(tests): listen on host 0.0.0.0 when running t…
…ests"

This reverts commit 491d0c0.
  • Loading branch information
eirslett committed May 3, 2021
commit 7e4063ebd7a55e049b4e3aa2016e6eb2ba9ab848
3 changes: 0 additions & 3 deletions packages/playground/alias/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ module.exports = {
build: {
minify: false
},
server: {
host: '0.0.0.0'
},
define: {
__VUE_OPTIONS_API__: true,
__VUE_PROD_DEVTOOLS__: true
Expand Down
3 changes: 0 additions & 3 deletions packages/playground/assets/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,5 @@ module.exports = {
build: {
outDir: 'dist/foo',
manifest: true
},
server: {
host: '0.0.0.0'
}
}
3 changes: 0 additions & 3 deletions packages/playground/css-codesplit-cjs/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,5 @@ module.exports = {
externalLiveBindings: false
}
}
},
server: {
host: '0.0.0.0'
}
}
3 changes: 0 additions & 3 deletions packages/playground/css-codesplit/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,5 @@ module.exports = {
other: resolve(__dirname, './other.js')
}
}
},
server: {
host: '0.0.0.0'
}
}
3 changes: 0 additions & 3 deletions packages/playground/css/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,5 @@ module.exports = {
]
}
}
},
server: {
host: '0.0.0.0'
}
}
3 changes: 0 additions & 3 deletions packages/playground/define/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,5 @@ module.exports = {
}
},
'process.env.SOMEVAR': '"SOMEVAR"'
},
server: {
host: '0.0.0.0'
}
}
5 changes: 1 addition & 4 deletions packages/playground/dynamic-import/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,5 @@ module.exports = {
)
}
}
],
server: {
host: '0.0.0.0'
}
]
}
3 changes: 0 additions & 3 deletions packages/playground/file-delete-restore/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,5 @@ module.exports = {
},
esbuild: {
jsxInject: `import React from 'react'`
},
server: {
host: '0.0.0.0'
}
}
5 changes: 1 addition & 4 deletions packages/playground/hmr/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,5 @@ module.exports = {
}
}
}
],
server: {
host: '0.0.0.0'
}
]
}
5 changes: 1 addition & 4 deletions packages/playground/html/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,5 @@ module.exports = {
]
}
}
],
server: {
host: '0.0.0.0'
}
]
}
4 changes: 0 additions & 4 deletions packages/playground/legacy/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,5 @@ module.exports = {
.replace(/<script type="module".*?<\/script>/g, '')
.replace(/<script nomodule/g, '<script')
fs.writeFileSync(indexPath, index)
},

server: {
host: '0.0.0.0'
}
}
5 changes: 1 addition & 4 deletions packages/playground/lib/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,5 @@ module.exports = {
})
}
}
],
server: {
host: '0.0.0.0'
}
]
}
5 changes: 1 addition & 4 deletions packages/playground/optimize-deps/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,5 @@ module.exports = {
})
}
}
],
server: {
host: '0.0.0.0'
}
]
}
3 changes: 0 additions & 3 deletions packages/playground/react/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,5 @@ module.exports = {
},
esbuild: {
jsxInject: `import React from 'react'`
},
server: {
host: '0.0.0.0'
}
}
5 changes: 1 addition & 4 deletions packages/playground/resolve/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,5 @@ module.exports = {
}
}
}
],
server: {
host: '0.0.0.0'
}
]
}
3 changes: 0 additions & 3 deletions packages/playground/ssr-react/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,5 @@ module.exports = {
},
build: {
minify: false
},
server: {
host: '0.0.0.0'
}
}
3 changes: 0 additions & 3 deletions packages/playground/ssr-vue/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,5 @@ module.exports = {
],
build: {
minify: false
},
server: {
host: '0.0.0.0'
}
}
3 changes: 0 additions & 3 deletions packages/playground/vue-jsx/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,5 @@ module.exports = {
build: {
// to make tests faster
minify: false
},
server: {
host: '0.0.0.0'
}
}
3 changes: 0 additions & 3 deletions packages/playground/vue/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,5 @@ export default defineConfig({
modules: {
localsConvention: 'camelCaseOnly'
}
},
server: {
host: '0.0.0.0'
}
})