c983667654
* Link to updated polyfill docs Ref: https://github.com/vercel/next.js/pull/13766 * Update examples/with-polyfills/README.md Co-authored-by: Joe Haddad <timer150@gmail.com> |
||
---|---|---|
.. | ||
client | ||
pages | ||
.gitignore | ||
next.config.js | ||
package.json | ||
README.md |
Example app with polyfills
❗️ Warning: This example is not the suggested way to add polyfills and is known to cause issues with bundling. See the browser support docs for the correct way to load polyfills.
Next.js supports modern browsers and IE 11. It loads required polyfills automatically. If you need to add custom polyfills, you can follow this example.
Deploy your own
Deploy the example using Vercel:
How to use
Using create-next-app
Execute create-next-app
with npm or Yarn to bootstrap the example:
npx create-next-app --example with-polyfills with-polyfills-app
# or
yarn create next-app --example with-polyfills with-polyfills-app
Download manually
Download the example:
curl https://codeload.github.com/vercel/next.js/tar.gz/master | tar -xz --strip=2 next.js-master/examples/with-polyfills
cd with-polyfills
Install it and run:
npm install
npm run dev
# or
yarn
yarn dev
Deploy it to the cloud with Vercel (Documentation).