Environment variables

Every setting in .env, what it does and its default.

Copy .env.example to .env and edit it. Restart the server after every change. Settings that the agency changes from day to day (name, phone, address, office hours, currency) live in the database instead, in Dashboard > Settings.

Core

Variable Default What it does
DATABASE_URL file:./dar.db Database connection. SQLite file next to the schema, or a PostgreSQL URL (see Manual setup).
SITE_URL http://localhost:3303 Public address, without a trailing slash. Used in canonical links, sitemap.xml, JSON-LD and share links.
AUTH_SECRET none (required) Signs the staff session cookie. At least 16 characters; use 64 random hex characters. Changing it signs everybody out.
AGENCY_TIMEZONE Asia/Muscat Time zone for "today", viewing dates and the dashboard's week.

First accounts (seed only)

Variable Default What it does
OWNER_EMAIL owner@dar.test The owner account created by the seed when there is no staff account yet.
OWNER_PASSWORD dar-demo-2026 Its password. Change it before the first seed, or later in Dashboard > My account.
SEED_STAFF_PASSWORD dar-demo-2026 Password of the 4 sample staff accounts.

Demo

Variable Default What it does
DEMO_MODE false true makes every dashboard change answer 403 demo_mode and shows a banner. See Demo mode.
DEMO_HINT 0 1 prints the owner email and password on the sign-in page. Public demos only.

Uploads

Variable Default What it does
UPLOAD_DIR storage/uploads Where dashboard uploads are stored. Relative paths start at the project folder.
UPLOAD_MAX_MB 8 Largest accepted photo, in megabytes.

AI assistant (optional)

Variable Default What it does
AI_BASE_URL empty (off) An OpenAI-compatible base URL, e.g. https://api.openai.com/v1 or http://localhost:11434/v1 for Ollama.
AI_API_KEY empty Sent as Authorization: Bearer .... Leave empty for a local server without keys.
AI_MODEL gpt-4o-mini Model name for both the listing writer and questions over listings.

AI staging studio (optional)

Variable Default What it does
AI_IMAGE_URL empty (off) Full URL of an OpenAI-images-compatible endpoint. Use .../images/edits so the real room is kept.
AI_IMAGE_KEY empty Key for that endpoint. Empty means AI_API_KEY is used.
AI_IMAGE_MODEL gpt-image-1 Model name sent with the request.
AI_IMAGE_SIZE 1536x1024 Output size sent with the request.

Currency

The currency is not an environment variable: it is in Dashboard > Settings (owner only). Prices are stored as integers in the smallest unit: baisa for OMR, so 285000 OMR is stored as 285000000. Set the number of decimals before adding listings: changing it later does not convert stored prices.

The price steps offered in the search forms are in src/lib/price-steps.ts (sale prices and monthly rents, in major units). Edit them to suit your market.