Hi there! I've been trying out the next-payload and next-payload-demo and I can't get around Payload's default admin CSS being loaded on the frontend.
Steps to reproduce:
- Clone next-payload-demo
- Launch
- Goto localhost:3000
- Check sources -> page.css
- See the Payload admin styles in the page.css
I've tracked down the issue to import { getPayloadClient } from '../../../payload/payloadClient';
If this import is removed from /app/(site)/[slug]/page.tsx (along with all other code related to getPayloadClient in that file), then Payload styles aren't carried and only (site) styles are added to page.css
Is there any way to avoid loading admin styles on the frontend? I tried going with webpack rules here, but could only disable loading these styles everywhere (/admin/ included) which is not desired.