Skip to content

Open-source agentic AI Search Execution Platform. Track AI visibility, find opportunities, and let agents turn signals into prioritized actions and drafted fixes across ChatGPT, Claude, Gemini, Google AI Overviews, Google AI Mode, Perplexity, Grok, and Microsoft Copilot.

chore(server): default NODE_ENV to production in the image

Gökhan Geyik6f900cf55ae5
diff --git a/server/.env.example b/server/.env.example
index 4fb305d39..0b5d65c19 100644
--- a/server/.env.example
+++ b/server/.env.example
@@ -1,9 +1,11 @@
-NODE_ENV=development
+# development for local work; use production on deployed servers (quieter
+# info-level logs + socket origin check enforced).
+NODE_ENV=production
PORT=80
# Logging
# Set log level: debug, info, warn, error. Defaults to debug in development, info in production.
-LOG_LEVEL=debug
+# LOG_LEVEL=debug
# Supabase
SUPABASE_URL=
diff --git a/server/Dockerfile b/server/Dockerfile
index 09d8adef7..eaf561bf9 100644
--- a/server/Dockerfile
+++ b/server/Dockerfile
@@ -14,6 +14,11 @@ RUN npm install && npm install -g pm2
COPY . .
+# Production default — keeps prod log level at info and enables the socket
+# origin check. Note: an env_file that sets NODE_ENV overrides this, so
+# deployment .env files must not pin NODE_ENV=development.
+ENV NODE_ENV=production
+
EXPOSE 80
CMD ["pm2-runtime", "start", "src/server.js"]