Created
November 26, 2021 20:10
-
-
Save mxro/5964b0a2629ac7528da0ce6e31aea08a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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