next-app/next.config.js

16 lines
340 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
pageExtensions: ['page.tsx', 'page.ts', 'page.jsx', 'page.js'],
async rewrites() {
return [
{
source: '/api/:path*',
destination: `${process.env.API_BASE_URL}/api/:path*`,
},
]
},
}
module.exports = nextConfig