Skip to content

Commit

Permalink
Update vite.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
peaklabs-dev committed Nov 11, 2024
1 parent 7ead0e5 commit ee049d6
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,11 @@ export default defineConfig({
server: {
watch: {
ignored: ['**/_data/**'],
},
},
host: "0.0.0.0",
hmr: process.env.GITPOD_WORKSPACE_URL
? {
// 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,
},
hmr: {
host: process.env.VITE_HOST,
},
},
plugins: [
laravel({
Expand Down

0 comments on commit ee049d6

Please sign in to comment.