rsnext/examples/with-polyfills
Karl Horky c983667654
Link with-polyfills example to updated polyfill docs (#13943)
* 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>
2020-07-24 23:28:18 -04:00
..
client Update references to zeit/next.js (#13463) 2020-05-27 17:51:11 -04:00
pages Update Examples for Fast Refresh (#13068) 2020-05-18 17:44:18 -04:00
.gitignore Added .gitignore to examples that are deployed to vercel (#15127) 2020-07-16 10:52:23 -04:00
next.config.js Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
package.json Test updater script on examples folder (#5993) 2019-01-05 12:19:27 +01:00
README.md Link with-polyfills example to updated polyfill docs (#13943) 2020-07-24 23:28:18 -04:00

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:

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