1// Tests nested Head metadata in a static rendering app. 2 3import { Stack } from 'expo-router'; 4import Head from 'expo-router/head'; 5 6export default function Layout() { 7 return ( 8 <> 9 <Head> 10 <meta name="expo-nested-layout" content="TEST_VALUE" /> 11 12 {/* Test that public env vars are exposed. */} 13 <meta name="expo-e2e-public-env-var-client" content={process.env.EXPO_PUBLIC_TEST_VALUE} /> 14 {/* Test that server env vars can be inlined during SSG. */} 15 <meta 16 name="expo-e2e-private-env-var-client" 17 content={process.env.EXPO_NOT_PUBLIC_TEST_VALUE} 18 /> 19 </Head> 20 <Stack /> 21 </> 22 ); 23} 24