An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix(vite): make dev server host/port configurable via env vars
Andras Bacsaie8dc48e058e6
diff --git a/vite.config.js b/vite.config.jsindex fc739c95db..4b967c40e9 100644--- a/vite.config.js+++ b/vite.config.js@@ -4,6 +4,8 @@ import vue from "@vitejs/plugin-vue";export default defineConfig(({ mode }) => {const env = loadEnv(mode, process.cwd(), '')+ const viteHost = env.VITE_HOST || null;+ const vitePort = Number(env.VITE_PORT || 5173);return {server: {@@ -14,9 +16,11 @@ export default defineConfig(({ mode }) => {],},host: "0.0.0.0",- hmr: {- host: env.VITE_HOST || '0.0.0.0'- },+ allowedHosts: true,+ origin: viteHost ? `http://${viteHost}:${vitePort}` : undefined,+ hmr: viteHost+ ? { host: viteHost, clientPort: vitePort }+ : true,},plugins: [laravel({