mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
20 lines
370 B
JavaScript
20 lines
370 B
JavaScript
/**
|
|
* @type {import('next').NextConfig}
|
|
*/
|
|
const nextConfig = {
|
|
turbopack: {
|
|
rules: {
|
|
'*.test-file.ts': [require.resolve('./test-file-loader.js')],
|
|
},
|
|
},
|
|
webpack(config) {
|
|
config.module.rules.push({
|
|
test: /\.test-file\.ts/,
|
|
use: require.resolve('./test-file-loader.js'),
|
|
})
|
|
return config
|
|
},
|
|
}
|
|
|
|
module.exports = nextConfig
|