From 053a9ba361ff6577310c4019b6bd737255e1b069 Mon Sep 17 00:00:00 2001 From: "amirhosein.ashourloo" Date: Sun, 6 Sep 2026 08:13:06 +0330 Subject: [PATCH] Add production build config (standalone output, .env.production) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pulled in from the parallel auth/cart work on origin/main that this branch is superseding — these two pieces are independent of the auth architecture and worth keeping: Next.js standalone output for a leaner production deploy, and the production env file (public URLs only, no secrets) it and the app read from. Co-Authored-By: Claude Sonnet 5 --- .env.production | 6 ++++++ next.config.ts | 1 + 2 files changed, 7 insertions(+) create mode 100644 .env.production diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..409e170 --- /dev/null +++ b/.env.production @@ -0,0 +1,6 @@ +# Used by `next build` on the websites VM (production). +# Local `next dev` still prefers `.env.local`. +NEXT_PUBLIC_API_BASE_URL=https://api.meshkee.com/api/v1 +NEXT_PUBLIC_DOMAIN=sanihome.ir +NEXT_PUBLIC_CUSTOMER_ORIGIN=https://customer.sanihome.ir +NEXT_PUBLIC_BUSINESS_ORIGIN=https://business.sanihome.ir diff --git a/next.config.ts b/next.config.ts index ef8450f..846a5c3 100644 --- a/next.config.ts +++ b/next.config.ts @@ -1,6 +1,7 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { + output: "standalone", allowedDevOrigins: ["sanihome.com", "localhost"], };