maj banniere prod/dev
This commit is contained in:
4
.env
4
.env
@@ -3,4 +3,6 @@
|
|||||||
DATABASE_URL="postgresql://admin:adminpassword@192.168.1.25:5432/afrohub_dev?schema=public"
|
DATABASE_URL="postgresql://admin:adminpassword@192.168.1.25:5432/afrohub_dev?schema=public"
|
||||||
|
|
||||||
# Exemple avec Supabase ou Neon (si base distante)
|
# Exemple avec Supabase ou Neon (si base distante)
|
||||||
# DATABASE_URL="postgresql://postgres:[MOT_DE_PASSE]@db.[ID_PROJET].supabase.co:5432/postgres"
|
# DATABASE_URL="postgresql://postgres:[MOT_DE_PASSE]@db.[ID_PROJET].supabase.co:5432/postgres"
|
||||||
|
# Environnement : "development" = accents rouges, "production" = accents normaux
|
||||||
|
NEXT_PUBLIC_APP_ENV=production
|
||||||
@@ -37,7 +37,7 @@ export async function generateMetadata(): Promise<Metadata> {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
const isDev = process.env.NODE_ENV === 'development';
|
const isDev = process.env.NEXT_PUBLIC_APP_ENV === 'development';
|
||||||
const devBrandOverride: React.CSSProperties | undefined = isDev ? {
|
const devBrandOverride: React.CSSProperties | undefined = isDev ? {
|
||||||
'--color-brand-50': '#fef2f2',
|
'--color-brand-50': '#fef2f2',
|
||||||
'--color-brand-100': '#fee2e2',
|
'--color-brand-100': '#fee2e2',
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ const Navbar = ({ settings }: NavbarProps) => {
|
|||||||
const pathname = usePathname() || '';
|
const pathname = usePathname() || '';
|
||||||
|
|
||||||
const siteName = settings?.siteName || "Afrohub";
|
const siteName = settings?.siteName || "Afrohub";
|
||||||
const isDev = process.env.NODE_ENV === 'development';
|
const isDev = process.env.NEXT_PUBLIC_APP_ENV === 'development';
|
||||||
|
|
||||||
// Hide Navbar on Dashboard to prevent double navigation, show only on public pages
|
// Hide Navbar on Dashboard to prevent double navigation, show only on public pages
|
||||||
if (pathname.startsWith('/dashboard')) return null;
|
if (pathname.startsWith('/dashboard')) return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user