next.jscdn

NextJS: How to add bootstrap via CDN


I am new to nextJS and I am having a bad time including bootstrap in the app via CDN. Where to add the links is best practice in the app?


Solution

  • Include Head from ./next and use declare any links to be included there.

         <Head>
             <script src="https://...."/>      
         </Head>