Add production build config (standalone output, .env.production)
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 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
66f92b634e
commit
053a9ba361
@@ -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
|
||||
@@ -1,6 +1,7 @@
|
||||
import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
output: "standalone",
|
||||
allowedDevOrigins: ["sanihome.com", "localhost"],
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user