feat(config, layout): add analytics proxy and improve type handling
- Implemented a rewrite rule in the Next.js configuration to proxy analytics requests, bypassing adblockers for Rybbit Analytics. - Enhanced the RootLayout component by correcting the typing of the children prop and improving the structure for better type safety.
This commit is contained in:
1 parent
0a63c3ada0
commit
8f096b9400
2 files changed
+21
-8
No files matched your search
@@ -57,6 +57,16 @@ const nextConfig: NextConfig = {
|
||||
];
|
||||
},
|
||||
|
||||
// Proxy reverso para bypass de adblockers (Rybbit Analytics)
|
||||
async rewrites() {
|
||||
return [
|
||||
{
|
||||
source: "/analytics/:match*",
|
||||
destination: "https://analytics.evandro.dev.br/:match*",
|
||||
},
|
||||
];
|
||||
},
|
||||
|
||||
// Compressão
|
||||
compress: true,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user