Demo mode
What demo mode shows out of the box, how to turn it off, and the one command that removes it before your own launch.
What it does
Demo mode makes your copy look and work like the live demo, so you get in with one click. It is on out of the box:
- the sign-in page shows a Demo access card with the sign-in details and a button that fills them in,
- the email and password fields start filled in, with a line under the form that says so,
- a floating colour switcher appears in the corner, and the colour picked there is remembered in the browser.
Nothing else changes: the pages and the sample data are the same with demo mode on or off. Before your own launch, one command removes the demo parts from the code, or one setting hides them.
Turn it off
To hide the demo parts without changing the code, set NEXT_PUBLIC_DEMO_MODE to false. Without Docker, set it in .env.local, then restart yarn dev or run yarn build again:
NEXT_PUBLIC_DEMO_MODE=falseWith Docker, pass it when you build the image:
dashboard-template-1docker build -t financial-dashboard --build-arg NEXT_PUBLIC_DEMO_MODE=false .The sign-in form then starts empty and the switcher is hidden, but the placeholder account still signs in when you type it.
Where demo mode is read
Included with your purchase. Sign in to read, or open it in your download.
The one constant every demo-only part reads, the files that use it, and how the removal finds them.
Remove the demo before your launch
Included with your purchase. Sign in to read, or open it in your download.
The one command that deletes the demo parts, what it keeps, and how to check the result.