@@ -32,6 +32,48 @@ const config = {
3232 destination : '/llms.mdx/api/:path*' ,
3333 } ,
3434 ] ,
35+ // Redirects from legacy Docusaurus URLs (react-native-vision-camera.com) to
36+ // the current fumadocs-based structure. Keep these so pages indexed by Google
37+ // under the old domain don't 404 after the domain redirect preserves the path.
38+ redirects : async ( ) => [
39+ { source : '/docs/guides' , destination : '/docs' , permanent : true } ,
40+ { source : '/docs/guides/getting-started' , destination : '/docs' , permanent : true } ,
41+ { source : '/docs/guides/devices' , destination : '/docs/devices' , permanent : true } ,
42+ { source : '/docs/guides/lifecycle' , destination : '/docs/lifecycle' , permanent : true } ,
43+ { source : '/docs/guides/formats' , destination : '/docs/constraints' , permanent : true } ,
44+ { source : '/docs/guides/preview' , destination : '/docs/preview-output' , permanent : true } ,
45+ { source : '/docs/guides/taking-photos' , destination : '/docs/photo-output' , permanent : true } ,
46+ { source : '/docs/guides/recording-videos' , destination : '/docs/video-output' , permanent : true } ,
47+ { source : '/docs/guides/code-scanning' , destination : '/docs/barcode-scanner' , permanent : true } ,
48+ { source : '/docs/guides/frame-processors' , destination : '/docs/frame-output' , permanent : true } ,
49+ { source : '/docs/guides/frame-processors-interacting' , destination : '/docs/frame-output' , permanent : true } ,
50+ { source : '/docs/guides/frame-processor-plugins-community' , destination : '/docs/native-frame-processor-plugins' , permanent : true } ,
51+ { source : '/docs/guides/pixel-formats' , destination : '/docs/pixel-formats-map' , permanent : true } ,
52+ { source : '/docs/guides/frame-processors-tips' , destination : '/docs/async-frame-processing' , permanent : true } ,
53+ { source : '/docs/guides/skia-frame-processors' , destination : '/docs/skia-frame-processors' , permanent : true } ,
54+ { source : '/docs/guides/frame-processors-plugins-overview' , destination : '/docs/native-frame-processor-plugins' , permanent : true } ,
55+ { source : '/docs/guides/frame-processors-plugins-ios' , destination : '/docs/native-frame-processor-plugins' , permanent : true } ,
56+ { source : '/docs/guides/frame-processors-plugins-android' , destination : '/docs/native-frame-processor-plugins' , permanent : true } ,
57+ { source : '/docs/guides/frame-processors-plugins-expo' , destination : '/docs/native-frame-processor-plugins' , permanent : true } ,
58+ { source : '/docs/guides/frame-processors-plugins-cpp' , destination : '/docs/native-frame-processor-plugins' , permanent : true } ,
59+ { source : '/docs/guides/frame-processors-plugins-final' , destination : '/docs/native-frame-processor-plugins' , permanent : true } ,
60+ { source : '/docs/guides/zooming' , destination : '/docs/zooming' , permanent : true } ,
61+ { source : '/docs/guides/focusing' , destination : '/docs/tap-to-focus' , permanent : true } ,
62+ { source : '/docs/guides/orientation' , destination : '/docs/orientation' , permanent : true } ,
63+ { source : '/docs/guides/exposure' , destination : '/docs/exposure-bias' , permanent : true } ,
64+ { source : '/docs/guides/hdr' , destination : '/docs/photo-hdr' , permanent : true } ,
65+ { source : '/docs/guides/stabilization' , destination : '/docs/video-stabilization' , permanent : true } ,
66+ { source : '/docs/guides/location' , destination : '/docs/location' , permanent : true } ,
67+ { source : '/docs/guides/performance' , destination : '/docs/performance' , permanent : true } ,
68+ { source : '/docs/guides/errors' , destination : '/docs' , permanent : true } ,
69+ { source : '/docs/guides/mocking' , destination : '/docs' , permanent : true } ,
70+ { source : '/docs/guides/troubleshooting' , destination : '/docs' , permanent : true } ,
71+ { source : '/docs/guides/vision-camera-v5' , destination : '/docs' , permanent : true } ,
72+ { source : '/docs/guides/shadowlens' , destination : '/docs' , permanent : true } ,
73+ { source : '/docs/guides/:path*' , destination : '/docs' , permanent : true } ,
74+ { source : '/docs/api' , destination : '/api' , permanent : true } ,
75+ { source : '/docs/api/:path*' , destination : '/api' , permanent : true } ,
76+ ] ,
3577}
3678
3779export default withMDX ( config )
0 commit comments