Admin · locked
Connect the database to open the admin
The DR K-Beauty Essentials admin manages products, offers, and guides. It is locked until the Postgres database is connected and you sign in as an admin.
To enable it
- Point
DATABASE_URLat your Postgres database (e.g.postgres://oppagift:password@localhost:5432/oppagift). - Run
pnpm db:setuponce to create the schema and seed the sample catalog. - Set
ADMIN_PASSWORDandADMIN_SESSION_SECRETso you can sign in and save changes.
To preview the admin locally without saving, set ADMIN_PREVIEW=true in .env.local. Never enable preview mode in production.