You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm starting the cms manually like this from pages/admin.tsx:
import dynamic from "next/dynamic";
import config from "../cms/config";
// import "../styles/globals.css"; <-- Does not work because NextJS complains that this is only allowed in _app.tsx
const Component = dynamic(
() => {
return import("netlify-cms-app").then((cms) => {
cms.init({ config });
});
},
{ ssr: false, loading: () => <p>Loading...</p> }
);
const AdminPage: React.FC = () => {
return <Component />;
};
export default AdminPage;
My Admin pages use the preview feature of NetlifyCMS, but I can't get the global styles imported. Is there any solution to importing styles into the CMS?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm starting the cms manually like this from
pages/admin.tsx
:My Admin pages use the preview feature of NetlifyCMS, but I can't get the global styles imported. Is there any solution to importing styles into the CMS?
Beta Was this translation helpful? Give feedback.
All reactions