Files
CRM-Mono/apps/web/next.config.js
Igor Rybakov d2a8ec9e81
Some checks are pending
CI / lint-test (push) Waiting to run
CI / build-api (push) Blocked by required conditions
CI / build-web (push) Blocked by required conditions
CI
2026-03-07 00:11:21 +02:00

31 lines
711 B
JavaScript

//@ts-check
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { composePlugins, withNx } = require('@nx/next');
/**
* @type {import('@nx/next/plugins/with-nx').WithNxOptions}
**/
const nextConfig = {
// Use this to set Nx-specific options
// See: https://nx.dev/recipes/next/next-config-setup
nx: {},
output: 'standalone',
async redirects() {
return [
{
source: '/catalog/:category(gidravlika|pnevmatika|asu|zip)',
destination: '/catalog?category=:category',
permanent: true,
},
];
},
};
const plugins = [
// Add more Next.js plugins to this list if needed.
withNx,
];
module.exports = composePlugins(...plugins)(nextConfig);