Skip to content

Instantly share code, notes, and snippets.

@marteinn
Created March 5, 2021 06:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marteinn/af80128e48f64e0e39f26c5363afc4b5 to your computer and use it in GitHub Desktop.
Save marteinn/af80128e48f64e0e39f26c5363afc4b5 to your computer and use it in GitHub Desktop.
How to add IE11 css variables polyfill in Next.js
// Polyfills
if (typeof window !== 'undefined') {
require("ie11-custom-properties");
}
function MyApp({ Component, pageProps, err }) {
return <Component {...pageProps} err={err} />;
}
export default MyApp;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment