All contact information (email, phone, KVK) has been migrated to Strapi CMS. Components now fetch this data dynamically from Strapi instead of using hardcoded values.
- ✅ Added
email,phone, andkvkNumberfields tocms/src/api/site/content-types/site/schema.json
- ✅
ContactInfo.tsx- Fetches email, phone, KVK from Strapi - ✅
Footer.tsx- Uses Strapi data for contact info - ✅
ContactDetailsSection.tsx- Fetches address from Strapi - ✅
PrivacyEmail.tsx- New component for dynamic privacy email - ✅
KvkNumber.tsx- New component for dynamic KVK display - ✅
SchemaMarkup.tsx- Fetches email from Strapi for SEO
- ✅
app/api/contact/route.ts- Fetches email from Strapi - ✅
app/api/leads/route.ts- Fetches email from Strapi
- ✅
app/privacy/page.tsx- Uses<PrivacyEmail />component - ✅
app/algemene-voorwaarden/page.tsx- Uses<KvkNumber />component
The schema changes need to be deployed to Strapi before the fields will be available:
cd cms
npm run build
# Then deploy to Strapi Cloud or your hostingAfter the CMS is rebuilt, run the update script:
export STRAPI_TOKEN='your-valid-token-here'
python3 scripts/update_site_contact_info.pyOr manually update via Strapi Admin:
- Go to Strapi Admin Panel
- Navigate to Content Manager > Site
- Find the "geldgeregeld" site entry
- Add/update:
email:info@geldgeregeld.nlphone:020-1234567kvkNumber:64859525
- Save and publish
After updating Strapi:
- Check that components display the correct contact info
- Verify API routes use Strapi email
- Test contact form submissions
All components have fallback values that will be used if Strapi is unavailable:
- Email:
info@geldgeregeld.nl - Phone:
020-1234567 - KVK:
64859525
If you get 401 errors when running the script:
- Verify your token is valid and not expired
- Check token permissions in Strapi Admin
- Generate a new API token if needed:
- Go to Strapi Admin > Settings > API Tokens
- Create new token with "Full access" or appropriate permissions
- Use this token in the script
cms/src/api/site/content-types/site/schema.json- Schema definitionfrontend/lib/get-site-contact-info.ts- Helper function (NEW)frontend/components/PrivacyEmail.tsx- Privacy email component (NEW)frontend/components/KvkNumber.tsx- KVK component (NEW)scripts/update_site_contact_info.py- Update script (NEW)- Various components and API routes updated to use Strapi data