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-app
yarn create next-app --example script-component script-component-app
pnpm create next-app --example script-component script-component-app
Deploy it to the cloud with Vercel (Documentation).