Update vite.config.js
This commit is contained in:
@@ -6,23 +6,11 @@ export default defineConfig({
|
|||||||
server: {
|
server: {
|
||||||
watch: {
|
watch: {
|
||||||
ignored: ['**/_data/**'],
|
ignored: ['**/_data/**'],
|
||||||
},
|
},
|
||||||
host: "0.0.0.0",
|
host: "0.0.0.0",
|
||||||
hmr: process.env.GITPOD_WORKSPACE_URL
|
hmr: {
|
||||||
? {
|
host: process.env.VITE_HOST,
|
||||||
// Due to port forwarding, we have to replace
|
},
|
||||||
// 'https' with the forwarded port, as this
|
|
||||||
// is the URI created by GitPod.
|
|
||||||
host: process.env.GITPOD_WORKSPACE_URL.replace(
|
|
||||||
"https://",
|
|
||||||
"5173-"
|
|
||||||
),
|
|
||||||
protocol: "wss",
|
|
||||||
clientPort: 443,
|
|
||||||
}
|
|
||||||
: {
|
|
||||||
host: process.env.VITE_HOST,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
laravel({
|
laravel({
|
||||||
|
Reference in New Issue
Block a user