()
| 34 | return config; |
| 35 | }, |
| 36 | async rewrites() { |
| 37 | return [ |
| 38 | { |
| 39 | source: '/api/wiki_cache/:path*', |
| 40 | destination: `${TARGET_SERVER_BASE_URL}/api/wiki_cache/:path*`, |
| 41 | }, |
| 42 | { |
| 43 | source: '/export/wiki/:path*', |
| 44 | destination: `${TARGET_SERVER_BASE_URL}/export/wiki/:path*`, |
| 45 | }, |
| 46 | { |
| 47 | source: '/api/wiki_cache', |
| 48 | destination: `${TARGET_SERVER_BASE_URL}/api/wiki_cache`, |
| 49 | }, |
| 50 | { |
| 51 | source: '/local_repo/structure', |
| 52 | destination: `${TARGET_SERVER_BASE_URL}/local_repo/structure`, |
| 53 | }, |
| 54 | { |
| 55 | source: '/api/auth/status', |
| 56 | destination: `${TARGET_SERVER_BASE_URL}/auth/status`, |
| 57 | }, |
| 58 | { |
| 59 | source: '/api/auth/validate', |
| 60 | destination: `${TARGET_SERVER_BASE_URL}/auth/validate`, |
| 61 | }, |
| 62 | { |
| 63 | source: '/api/lang/config', |
| 64 | destination: `${TARGET_SERVER_BASE_URL}/lang/config`, |
| 65 | }, |
| 66 | ]; |
| 67 | }, |
| 68 | }; |
| 69 | |
| 70 | export default nextConfig; |
nothing calls this directly
no outgoing calls
no test coverage detected