17 lines
407 B
JavaScript
17 lines
407 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
rewrites: async () => {
|
|
return [
|
|
{
|
|
source: '/api/:path*',
|
|
destination:
|
|
process.env.NODE_ENV === 'development'
|
|
? 'http://127.0.0.1:8000/api/:path*'
|
|
: '/api/',
|
|
},
|
|
]
|
|
},
|
|
}
|
|
|
|
module.exports = nextConfig
|