Skip to content

Instantly share code, notes, and snippets.

@mxro
Created November 26, 2021 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mxro/5964b0a2629ac7528da0ce6e31aea08a to your computer and use it in GitHub Desktop.
Save mxro/5964b0a2629ac7528da0ce6e31aea08a to your computer and use it in GitHub Desktop.
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/explicit-function-return-type */
const withPlugins = require('next-compose-plugins');
const getLocalPackages = require('./scripts/getLocalPackages');
const localPackages = getLocalPackages.getLocalPackages();
const withTM = require('next-transpile-modules')(localPackages);
const nextConfig = {
webpack: (config, options) => {
return config;
},
eslint: {
// ESLint managed on the workspace level
ignoreDuringBuilds: true,
},
images: {
disableStaticImages: true,
},
};
const config = withPlugins(
[
[withTM()],
],
nextConfig
);
module.exports = config;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment