File tree Expand file tree Collapse file tree 19 files changed +39
-28
lines changed Expand file tree Collapse file tree 19 files changed +39
-28
lines changed Original file line number Diff line number Diff line change 2121 VITE_IS_DEMO : false
2222 BETTER_AUTH_SECRET : fyXjLxjXJowjicI2BAjxOaUsQd1QafdegZDciJE/xM8=
2323 EMAIL_SERVER : smtp://username:password@localhost:1025
24- EMAIL_FROM : Start UI <noreply@example.com>
24+ EMAIL_FROM : Example <noreply@example.com>
2525 services :
2626 postgres :
2727 image : postgres
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ export const envClient = createEnv({
2525 clientPrefix : 'VITE_' ,
2626 client : {
2727 VITE_BASE_URL : z . string ( ) . url ( ) ,
28+ // !STARTERCONF [demoMode] Remove this VITE_IS_DEMO env var
2829 VITE_IS_DEMO : z
2930 . enum ( [ 'true' , 'false' ] )
3031 . optional ( )
Original file line number Diff line number Diff line change 11import { envClient } from '@/env/client' ;
22
3- export const AUTH_SIGNUP_ENABLED = envClient . VITE_IS_DEMO ? false : true ;
3+ export const AUTH_SIGNUP_ENABLED = envClient . VITE_IS_DEMO ? false : true ; // !STARTERCONF [demoMode] Remove the envClient.VITE_IS_DEMO condition. You can
44export const AUTH_EMAIL_OTP_MOCKED = '000000' ;
55export const AUTH_EMAIL_OTP_EXPIRATION_IN_MINUTES = 5 ;
Original file line number Diff line number Diff line change 1- import { DemoAppSwitch } from '@/features/demo/demo-app-switch' ;
2- import { DemoMarketingBento } from '@/features/demo/demo-marketing-bento' ;
3- import { DemoWelcome } from '@/features/demo/demo-welcome' ;
1+ import { DemoAppSwitch } from '@/features/demo/demo-app-switch' ; // !STARTERCONF [demoMode] Remove this import
2+ import { DemoMarketingBento } from '@/features/demo/demo-marketing-bento' ; // !STARTERCONF [demoMode] Remove this import
3+ import { DemoWelcome } from '@/features/demo/demo-welcome' ; // !STARTERCONF [demoMode] Remove this import
44import {
55 PageLayout ,
66 PageLayoutContent ,
@@ -16,6 +16,7 @@ export const PageDashboard = () => {
1616 </ PageLayoutTopBar >
1717 < PageLayoutContent containerClassName = "max-w-4xl" >
1818 < div className = "flex flex-col gap-4" >
19+ { /* !STARTERCONF [demoMode] Update with your content */ }
1920 < DemoWelcome />
2021 < DemoAppSwitch />
2122 < DemoMarketingBento />
Original file line number Diff line number Diff line change 1+ // !STARTERCONF [demoMode] Remove the demo folder
12import { Link , useMatchRoute } from '@tanstack/react-router' ;
23import { ArrowRightIcon } from 'lucide-react' ;
34import { useTranslation } from 'react-i18next' ;
Original file line number Diff line number Diff line change 1+ // !STARTERCONF [demoMode] Remove the demo folder
12export const DemoMarketingBento = ( ) => {
23 return (
34 < div className = "grid grid-cols-2 gap-2 sm:grid-cols-3" >
Original file line number Diff line number Diff line change 1+ // !STARTERCONF [demoMode] Remove the demo folder
12import { create } from 'zustand' ;
23
34import {
Original file line number Diff line number Diff line change 1+ // !STARTERCONF [demoMode] Remove the demo folder
12import { useTranslation } from 'react-i18next' ;
23
34import { Button } from '@/components/ui/button' ;
Original file line number Diff line number Diff line change @@ -10,16 +10,15 @@ export const LoginEmailHint = () => {
1010 const form = useFormContext ( ) ;
1111 const mockedEmail = 'admin@admin.com' ;
1212
13+ // !STARTERCONF [demoMode] Remove the `&& !envClient.VITE_IS_DEMO` condition
1314 if ( import . meta. env . PROD && ! envClient . VITE_IS_DEMO ) {
1415 return null ;
1516 }
1617
1718 return (
1819 < Alert dir = "ltr" >
1920 < TerminalIcon className = "size-4" />
20- < AlertTitle >
21- { envClient . VITE_IS_DEMO ? 'Demo mode' : 'Dev mode' }
22- </ AlertTitle >
21+ < AlertTitle > Dev mode</ AlertTitle >
2322 < AlertDescription className = "flex flex-wrap text-sm leading-4" >
2423 You can login with{ ' ' }
2524 < button
@@ -41,16 +40,15 @@ export const LoginEmailHint = () => {
4140export const LoginEmailOtpHint = ( ) => {
4241 const form = useFormContext ( ) ;
4342
43+ // !STARTERCONF [demoMode] Remove the `&& !envClient.VITE_IS_DEMO` condition
4444 if ( import . meta. env . PROD && ! envClient . VITE_IS_DEMO ) {
4545 return null ;
4646 }
4747
4848 return (
4949 < Alert dir = "ltr" >
5050 < TerminalIcon className = "size-4" />
51- < AlertTitle >
52- { envClient . VITE_IS_DEMO ? 'Demo mode' : 'Dev mode' }
53- </ AlertTitle >
51+ < AlertTitle > Dev mode</ AlertTitle >
5452 < AlertDescription className = "flex text-sm leading-4" >
5553 Use the code{ ' ' }
5654 < button
Original file line number Diff line number Diff line change 11import { Logo } from '@/components/brand/logo' ;
22
3- import { DemoAppSwitch } from '@/features/demo/demo-app-switch' ;
4- import { DemoMarketingBento } from '@/features/demo/demo-marketing-bento' ;
5- import { DemoWelcome } from '@/features/demo/demo-welcome' ;
3+ import { DemoAppSwitch } from '@/features/demo/demo-app-switch' ; // !STARTERCONF [demoMode] Remove this import
4+ import { DemoMarketingBento } from '@/features/demo/demo-marketing-bento' ; // !STARTERCONF [demoMode] Remove this import
5+ import { DemoWelcome } from '@/features/demo/demo-welcome' ; // !STARTERCONF [demoMode] Remove this import
66import {
77 PageLayout ,
88 PageLayoutContent ,
@@ -17,6 +17,7 @@ export const PageHome = () => {
1717 </ PageLayoutTopBar >
1818 < PageLayoutContent >
1919 < div className = "flex flex-1 flex-col gap-4" >
20+ { /* !STARTERCONF [demoMode] Update with your content */ }
2021 < DemoWelcome />
2122 < DemoAppSwitch />
2223 < DemoMarketingBento />
You can’t perform that action at this time.
0 commit comments