+host
Vike's +host
setting is an alias for setting Vite's server.host and preview.host.
This:
// +config.js
export default {
host: true
}
Is equivalent to that:
// vite.config.js
export default {
server: {
host: true
},
preview: {
host: true
}
}
If you want to set two different values between development and preview, then set the values over vite.config.js
instead of using +host
.