turbopack and app router; very annoying to work with!

This commit is contained in:
2025-05-31 22:06:24 -04:00
parent 657f4b1e41
commit f477ba21ea
35 changed files with 125 additions and 310 deletions

View File

@@ -3,14 +3,19 @@ import NextBundleAnalyzer from '@next/bundle-analyzer';
let config: NextConfig = {
reactStrictMode: true,
i18n: {
locales: ['en-US'],
defaultLocale: 'en-US'
turbopack: {
rules: {
'*.txt': {
as: '*.js',
loaders: ['raw-loader'],
},
'*.md': {
as: '*.js',
loaders: ['raw-loader'],
}
},
resolveExtensions: ['.txt', '.md', '.tsx', '.ts', '.js']
},
// not sure why this breaks prod build in the latest version
// aah it's so frustrating to deal with an warning log that
// shows up regardless of the config but its presence halts
// the entire thing.
webpack: (config, _options) => {
config.module.rules.push(
{