--- import Alert from './Alert.astro'; import Markdown from './Markdown.astro'; import { getNetlifyContext } from '../utils'; const noNetlifyContextAlert = ` For full functionality, either run this site locally via \`netlify dev\` ([see docs](https://docs.netlify.com/cli/local-development/)) or deploy it to Netlify. `; const { addedChecksFunction, class: className } = Astro.props; const ctx = getNetlifyContext(); let markdownText = null; if (!ctx) { markdownText = noNetlifyContextAlert; } else if (addedChecksFunction) { markdownText = addedChecksFunction(ctx); } --- { markdownText && ( ) }