I have installed netlify via npm, now there’s its script sitting inside node_modules.
I need it to be in the head, e.g.
<script src="node_modules/..."/> for admin page; I know how to use “next/head”.
But Next doesn’t serve from “node_modules” folder. Requiring that script gives “window not defined” error—it’s browser-only script. Also, as I am statically hosting this site, node_modules isn’t even part of final bundle…
Please help. Latest NextJS version used.
PS. Currently, I am adding netlifycms from unpkg, but want it to be part of package.json to be able to update.