diff --git a/.env.example b/.env.example index 2febae8..e4dc420 100644 --- a/.env.example +++ b/.env.example @@ -1 +1,2 @@ -NEXT_PUBLIC_ENVIRONMENT= \ No newline at end of file +NEXT_PUBLIC_API_URL= +NEXT_PUBLIC_ENVIRONMENT= diff --git a/src/components/Hero/index.tsx b/src/components/Hero/index.tsx index a29fc11..62eb4c8 100644 --- a/src/components/Hero/index.tsx +++ b/src/components/Hero/index.tsx @@ -3,7 +3,8 @@ import Container from '@/components/Container' import EmergencyForm from '@/components/EmergencyForm' const HeroSection: React.FC = () => { - const showEmergencyForm = process.env.NEXT_PUBLIC_ENVIRONMENT === 'test' + const environment = process.env.NEXT_PUBLIC_ENVIRONMENT + const showEmergencyForm = !environment || environment === 'test' return (