This project is the new getonnet.agency website, migrated from WordPress to Payload CMS with a Next.js frontend.
- CMS: Payload CMS v3
- Frontend: Next.js (App Router)
- Database: MongoDB Atlas
- Package manager: pnpm
- Language: TypeScript
main → stable, production-ready only
└── dev → shared development branch (merge your work here)
└── feature/xxx → your individual feature branches
Rules:
- Never commit directly to
mainordev - Always branch off
devfor new features - Open a Pull Request into
devwhen your feature is ready mainis only updated when we're ready to deploy to production
git clone https://github.com/Getonnet/Getonnetagency.git
cd Getonnetagencygit checkout devpnpm installCopy the example env file:
cp .env.example .envThen open .env and fill in the values:
DATABASE_URL=mongodb+srv://... # Ask Aldrin for the MongoDB connection string
PAYLOAD_SECRET=... # Ask Aldrin for the secret key
⚠️ Never commit your.envfile. It's already in.gitignore.
pnpm devThe site runs at: http://localhost:3000
Payload admin runs at: http://localhost:3000/admin
| Collection | Description |
|---|---|
users |
Admin users |
media |
Images and files |
pages |
Static pages |
posts |
Blog posts |
categories |
Post categories |
tags |
Post tags |
cases |
Customer case studies (kundecaser) |
testimonials |
Client testimonials |
team |
Team members |
All content from the original WordPress site (getonnet.agency) has already been migrated into Payload CMS. If you ever need to re-run the migration (e.g. after a fresh database):
# The file should already be at:
src/scripts/getonnet_WordPress_2026-03-27.xmlpnpm migrateThis will import in order:
- Categories
- Tags
- Media (downloads images from the original WordPress site)
- Posts
- Pages
- Cases
- Testimonials
- Team members
⚠️ Media files are stored locally in/mediaand are excluded from Git (see.gitignore). For production, media should be hosted on a cloud storage service (e.g. Cloudinary or AWS S3).
# Make sure you're up to date with dev
git checkout dev
git pull origin dev
# Create your feature branch
git checkout -b feature/your-feature-name
# Do your work, then commit
git add .
git commit -m "Description of what you did"
# Push your branch
git push origin feature/your-feature-name
# Open a Pull Request into dev on GitHubpnpm dev # Start dev server
pnpm devsafe # Clean .next then start dev
pnpm build # Build for production
pnpm lint # Run ESLint
pnpm typecheck # Run TypeScript type check
pnpm generate:types # Regenerate Payload types after collection changes
pnpm migrate # Run WordPress → Payload migration script