Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading