This example shows different strategies that can be used for the next/script component:
Deploy the example using Vercel or preview live with StackBlitz
Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example script-component script-component-appyarn create next-app --example script-component script-component-apppnpm create next-app --example script-component script-component-appDeploy it to the cloud with Vercel (Documentation).