almeira-web/dripzone-app/next.config.ts

54 lines
1.1 KiB
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: "standalone",
images: {
remotePatterns: [
{ 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 [
{
source: '/catalog',
destination: '/catalogo',
},
{
source: '/coleccion',
destination: '/catalogo',
},
{
source: '/zapatillas',
destination: '/catalogo',
},
{
source: '/dripzone.apk',
destination: '/DripZone.apk',
},
];
},
};
export default nextConfig;