mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
0e6f52e99b
We have no testing infrastructure, unfortunately <img width="2254" height="1260" alt="Bildschirmfoto 2026-05-28 um 20 29 58" src="https://github.com/user-attachments/assets/a9f1b646-994d-4417-98d7-160ce5249032" />
19 lines
373 B
JavaScript
19 lines
373 B
JavaScript
const developmentRewrites = () => {
|
|
return [
|
|
{
|
|
source: '/data/:path*',
|
|
destination: 'http://localhost:4000/data/:path*',
|
|
},
|
|
]
|
|
}
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
output: 'export',
|
|
distDir: 'dist',
|
|
rewrites:
|
|
process.env.NODE_ENV === 'development' ? developmentRewrites : undefined,
|
|
}
|
|
|
|
export default nextConfig
|