feat: 优化项目目录结构
This commit is contained in:
22
apps/frontend/next.config.ts
Normal file
22
apps/frontend/next.config.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
/* config options here */
|
||||
reactStrictMode: true,
|
||||
devIndicators: {
|
||||
position: 'bottom-right',
|
||||
},
|
||||
async rewrites() {
|
||||
return [
|
||||
{
|
||||
source: '/api/:path*',
|
||||
destination: 'http://localhost:3001/:path*',
|
||||
}
|
||||
]
|
||||
},
|
||||
images: {
|
||||
remotePatterns: [new URL('https://tone-personal.oss-cn-chengdu.aliyuncs.com/**')]
|
||||
}
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
Reference in New Issue
Block a user