This repository is publicly visible on the internet. Never commit:
- API keys, tokens, or secrets
- Passwords or credentials
- Private business information
- Customer data
- Internal URLs or endpoints
If you accidentally commit sensitive data, alert the maintainer immediately. The data is already exposed - a force push doesn't remove it from GitHub's servers or anyone who cloned/forked.
- GitHub Pages hosts the production site at www.hacktoolkit.com
- The
docs/directory contains the static build output - Any push to
masterautomatically deploys to production - There is no staging environment - master IS production
Never push directly to
masterwithout explicit approval.
Changes pushed to master go live immediately. This includes:
- Source code changes (
src/) - Build artifacts (
docs/) - Configuration files
- Create a feature branch:
git checkout -b feature/my-change - Make changes to source files in
src/ - Test locally with
yarn run dev - Build with
make buildto verify the build succeeds - Do NOT push to master - create a PR for review
- Get explicit approval from the maintainer
- Merge the approved PR to master
- Run
make deployto build and stage the deployment - Push to master - GitHub Pages automatically deploys the
docs/folder
yarn run dev # Local development server
make build # Production build (outputs to docs/)
make deploy # Build and stage deployment commit
yarn run lint # Check for errors- Use environment variables for any secrets (local dev only)
- Keep sensitive config in
.envfiles (gitignored) - Review diffs before committing
- Ask before making external-facing changes
- Commit
.envfiles or any secrets - Hardcode API keys, tokens, or passwords
- Include internal business data in code or comments
- Push directly to master without approval
www.hacktoolkit.com/
├── src/ # Source code (React/Next.js)
│ ├── pages/ # Page components
│ ├── components/ # Reusable components
│ └── styles/ # CSS/SCSS styles
├── docs/ # Built static site (auto-generated)
├── public/ # Static assets
├── Makefile # Build automation
└── package.json # Dependencies
src/- Make ALL changes here. This is the source of truth.docs/- NEVER edit directly. This is auto-generated bymake build.
Before making any changes:
- Is this a public repo? (Yes - don't include secrets)
- Am I on a feature branch? (Don't work on master)
- Am I editing files in
src/, notdocs/? - Do I have explicit approval to deploy?
Before pushing:
- Run
yarn run lint- no errors? - Run
make build- build succeeds? - Is this going to master? (If yes, STOP - need approval)
After approval to deploy:
- Run
make deployto build and stage - Review the staged changes
- Push to master
The make build command automatically creates docs/.nojekyll. This file is required for GitHub Pages to serve files starting with underscores (like _next/). Never delete it manually.
Changes to docs/ will be overwritten on the next build. Always edit src/ and rebuild.
Running make deploy ensures:
- Clean build from source
- CNAME file is copied
.nojekyllfile is created- Build artifacts are properly staged
For questions about deployment or access, contact the repository maintainer.