29 lines
706 B
JavaScript
29 lines
706 B
JavaScript
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
const withPlugins = require('next-compose-plugins');
|
|
const withSass = require('@zeit/next-sass');
|
|
const withFonts = require('next-fonts');
|
|
const withSvgr = require('next-svgr');
|
|
|
|
const nextConfig = {
|
|
webpack(config) {
|
|
const rules = [{}];
|
|
|
|
return {
|
|
...config,
|
|
module: {
|
|
...config.module,
|
|
rules: [...config.module.rules, ...rules],
|
|
},
|
|
node: {
|
|
fs: 'empty',
|
|
},
|
|
};
|
|
},
|
|
env: {
|
|
CONTENTFUL_SPACE_ID: process.env.CONTENTFUL_SPACE_ID,
|
|
CONTENTFUL_ACCESS_TOKEN: process.env.CONTENTFUL_ACCESS_TOKEN,
|
|
},
|
|
};
|
|
|
|
module.exports = withPlugins([withSass, withFonts, withSvgr], nextConfig);
|