mirror of
https://github.com/jakobkordez/ham-reserve.git
synced 2025-05-28 14:40:31 +00:00
15 lines
349 B
JavaScript
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
|