evoleasing-account/next.config.js
2021-11-11 13:40:44 +03:00

47 lines
1009 B
JavaScript

const withImages = require('next-images');
const withFonts = require('next-fonts');
const withLess = require("next-with-less");
module.exports = withImages(withFonts(withLess({
images: {
domains: [ 'evo-lk.quickcode.ru', 'www.evolesing.ru', 'evolesing.ru', ],
},
reactStrictMode: true,
async redirects()
{
return [
//{
//source: '/special',
//destination: '/special/with_producer',
//permanent: true,
//},
]
},
async rewrites()
{
return {
afterFiles: [
{
source: "/contract/:number/payments",
destination: "/contract",
},
{
source: "/contract/:number/agreement",
destination: "/contract/agreement",
},
{
source: "/contract/:number/services",
destination: "/contract/services",
},
{
source: "/contract/:number/documents",
destination: "/contract/documents",
}
//{
//source: "/about/reviews/:page(\\d{1,})",
//destination: "/about/reviews",
//},
],
}
}
})));