### Install Pre-commit Git Hooks Source: https://github.com/dhandebaz/sangathan/blob/main/README.md Configure Git to automatically run pre-commit hooks, which include a secrets scan to prevent accidental commits of sensitive information. ```bash git config core.hooksPath .githooks ``` -------------------------------- ### Verification Commands Source: https://github.com/dhandebaz/sangathan/blob/main/README.md Commands to verify the project's state by running linting, building, and dependency audits. These should all pass in the current repository state. ```bash npm run lint npm run build npm run audit ``` -------------------------------- ### Development and Build Scripts Source: https://github.com/dhandebaz/sangathan/blob/main/README.md Common npm scripts for running the development server, building for production, and performing linting and security audits. ```bash npm run dev # Development server npm run build # Production build npm run start # Start production server npm run lint # ESLint npm run audit # Dependency vulnerability audit npm run secrets:scan # Scan for leaked secrets in codebase npm run precommit # Secrets scan + lint (for CI/local hooks) npm run ci # Full CI pipeline locally ``` -------------------------------- ### Core Environment Variables Source: https://github.com/dhandebaz/sangathan/blob/main/README.md Essential environment variables for configuring the Next.js application and Supabase integration. Ensure these are set in your .env.local file. ```env NEXT_PUBLIC_APP_URL= NEXT_PUBLIC_SUPABASE_URL= NEXT_PUBLIC_SUPABASE_ANON_KEY= SUPABASE_SERVICE_ROLE_KEY= COOKIE_SIGNING_SECRET= QR_TOKEN_SECRET= NEXT_PUBLIC_VAPID_PUBLIC_KEY= VAPID_PRIVATE_KEY= PUSH_CONTACT_EMAIL= CRON_SECRET= SUPER_ADMIN_EMAILS= ALLOWED_SERVICE_IPS= # Comma-separated IPs allowed to use service client NEXT_PUBLIC_MAINTENANCE_MODE=false MAINTENANCE_BYPASS_SECRET= ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.