mirror of
https://github.com/FranP-code/spend-ia.git
synced 2025-10-13 00:14:09 +00:00
30 lines
588 B
JavaScript
30 lines
588 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
|
|
import path from 'path';
|
|
|
|
const workspace = path.resolve(process.cwd(), '../../');
|
|
|
|
const nextConfig = {
|
|
compiler: {
|
|
styledComponents: true,
|
|
},
|
|
reactStrictMode: true,
|
|
webpack: (config, options) => {
|
|
config.module = {
|
|
...config.module,
|
|
rules: [
|
|
...config.module.rules,
|
|
{
|
|
exclude: /node_modules/,
|
|
include: [workspace],
|
|
test: /\.(js|jsx|ts|tsx)$/,
|
|
use: options.defaultLoaders.babel,
|
|
},
|
|
],
|
|
};
|
|
return config;
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|