The System Settings panel atDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Priyanshu471/ad-management/llms.txt
Use this file to discover all available pages before exploring further.
/admin/settings is the planned interface for managing platform-wide configuration on the Ad Management System. In its current state the route renders a placeholder. All active system configuration is handled through environment variables and the next.config.mjs file directly.
Route
Current Implementation
The page component currently renders a single placeholder element:Environment Variables
The platform uses a custom session approach via theuseUser Zustand store and a MongoDB-backed API — it does not use NextAuth.js. The only confirmed environment variable referenced in the source code is:
| Variable | Required | Description |
|---|---|---|
MONGO_URI | Yes | MongoDB connection string used by lib/mongodb.js to connect via Mongoose |
.env.local for local development:
MONGO_URI as a secret in your deployment platform (e.g. Vercel, Railway, or Render) rather than committing it to source control.
API CORS Configuration
Thenext.config.mjs file configures CORS response headers for all API routes under /api/:path*. This allows API routes to be called cross-origin during development and from external clients:
The Settings page (
/admin/settings) currently renders a placeholder. Platform configuration is managed via MONGO_URI in your environment and through next.config.mjs until the settings UI is built out.