diff --git a/dripzone-app/next.config.ts b/dripzone-app/next.config.ts index d424050..f368b08 100644 --- a/dripzone-app/next.config.ts +++ b/dripzone-app/next.config.ts @@ -7,6 +7,27 @@ const nextConfig: NextConfig = { { protocol: "https", hostname: "**" }, ], }, + async headers() { + return [ + { + source: '/:path*.apk', + headers: [ + { + key: 'Content-Disposition', + value: 'attachment; filename="DripZone.apk"', + }, + { + key: 'Content-Type', + value: 'application/vnd.android.package-archive', + }, + { + key: 'Cache-Control', + value: 'public, max-age=3600, must-revalidate', + }, + ], + }, + ]; + }, async rewrites() { return [ { @@ -21,6 +42,10 @@ const nextConfig: NextConfig = { source: '/zapatillas', destination: '/catalogo', }, + { + source: '/dripzone.apk', + destination: '/DripZone.apk', + }, ]; }, }; diff --git a/dripzone-app/src/components/store/CategoryPills.tsx b/dripzone-app/src/components/store/CategoryPills.tsx index fc757aa..849b4e6 100644 --- a/dripzone-app/src/components/store/CategoryPills.tsx +++ b/dripzone-app/src/components/store/CategoryPills.tsx @@ -89,8 +89,8 @@ export const CategoryPills: React.FC = ({
{dynamicCategories.map((cat) => { const isActive = - activeCategory.toLowerCase() === cat.id.toLowerCase() || - (activeCategory === 'all' && cat.id === 'all'); + (activeCategory || 'all').toLowerCase() === (cat.id || '').toLowerCase() || + ((!activeCategory || activeCategory === 'all') && cat.id === 'all'); return (