Files
next.js/examples/script-component
1948f5b4ba fix(create-next-app): link to app dir docs in next-env.d.ts in app dir templates (#68534)
Fixes #68533

A link to docs in `next-dev.d.ts` linked to the pages router docs in app
router templates. This was confusing, because some sections on this page
only work with pages router. This PR fixes that

---------

Co-authored-by: Sam Ko <[email protected]>
2024-08-09 22:21:28 +00:00
..

Script component

This example shows different strategies that can be used for the next/script component:

Deploy your own

Deploy the example using Vercel or preview live with StackBlitz

Deploy with Vercel

How to use

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).