2023-02-17 17:00:32 +08:00
|
|
|
/** @type {import('next').NextConfig} */
|
|
|
|
const nextConfig = {
|
|
|
|
reactStrictMode: true,
|
2023-02-28 20:41:48 +08:00
|
|
|
pageExtensions: ['page.tsx', 'page.ts', 'page.jsx', 'page.js'],
|
2023-02-19 13:40:29 +08:00
|
|
|
async rewrites() {
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
source: '/api/:path*',
|
|
|
|
destination: `${process.env.API_BASE_URL}/api/:path*`,
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
2023-02-17 17:00:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = nextConfig
|