My app requires a script that isn't on npm so I have the file in my project folder, but how can I use it in my nextJs app?
I have tried putting the script in the public folder and then using next/head:
<Head>
<script type="text/javascript" src="/public/CustomEase.min.js"></script>
</Head>
but the script cannot be found.
Just use src="/CustomEase.min.js". The public folder is the root folder for your public URL.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With