ham-reserve/next-app/next.config.js
2023-11-04 21:01:33 +01:00

15 lines
349 B
JavaScript

const apiBaseUrl = process.env.API_BASE_URL || 'http://localhost:3001'
const output = process.env.NEXT_OUTPUT || undefined
/** @type {import('next').NextConfig} */
const nextConfig = {
output: output,
rewrites: async () => [{
source: '/api/:path*',
destination: `${apiBaseUrl}/:path*`
}]
}
module.exports = nextConfig