Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Add PORT variable

Blue Mousef3dd8aa3a1a5
diff --git a/web/.env.example b/web/.env.example
index 08d900b45..35a920b31 100644
--- a/web/.env.example
+++ b/web/.env.example
@@ -4,3 +4,5 @@ COOKIE_DOMAIN=tonomo.swetrix.com
DISABLE_MARKETING_PAGES=
PADDLE_CLIENT_SIDE_TOKEN=
+
+PORT=3000
diff --git a/web/vite.config.ts b/web/vite.config.ts
index d4c5d7d78..67d01157b 100644
--- a/web/vite.config.ts
+++ b/web/vite.config.ts
@@ -5,7 +5,7 @@ import tsconfigPaths from 'vite-tsconfig-paths'
export default defineConfig({
server: {
- port: 3000,
+ port: Number(process.env.PORT) || 3000,
},
optimizeDeps: {
include: ['axios-auth-refresh'],