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