MCPcopy Create free account
hub / github.com/AsyncFuncAI/deepwiki-open / rewrites

Function rewrites

next.config.ts:36–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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
70export default nextConfig;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected