web / next.config.mjs
quinnz's picture
fix error
8a7d317
raw
history blame contribute delete
294 Bytes
import path from 'path'
/** @type {import('next').NextConfig} */
const nextConfig = {
pageExtensions: ['ts', 'tsx', 'mdx'],
webpack(config) {
// @ 绝对路径指向根目录
config.resolve.alias['@'] = path.resolve(process.cwd())
return config
}
}
export default nextConfig