Skip to content

Commit

Permalink
remove unnecessary webpack customizations (#1704)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherChudzicki committed Oct 18, 2024
1 parent 8af4e53 commit 44dc6f2
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions frontends/main/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,6 @@ const processFeatureFlags = () => {

/** @type {import('next').NextConfig} */
const nextConfig = {
webpack: (config, { webpack }) => {
config.plugins.push(
new webpack.IgnorePlugin({
resourceRegExp: /\.test\.tsx$/,
}),
new webpack.IgnorePlugin({
resourceRegExp: /mockAxios\.ts/,
}),
)

// Do not do this. Added to fix "import type", but causes a strage issue where
// the root page and layout think they're Client Components and "use client"
// directives not properly respected.
// https://nextjs.org/docs/app/api-reference/next-config-js/webpack
//
// config.module.rules.push({
// test: /\.tsx?$/,
// use: [defaultLoaders.babel],
// })

return config
},

async rewrites() {
return [
/* Images moved from /static, though image paths are sometimes
Expand Down

0 comments on commit 44dc6f2

Please sign in to comment.