diff --git a/next.config.js b/next.config.js index 4931a14..d26a76a 100644 --- a/next.config.js +++ b/next.config.js @@ -30,6 +30,7 @@ module.exports = withImages(withFonts(withLess({ async redirects() { return [ + process.env.MAINTENANCE_MODE === "1" ? { source: "/((?!maintenance).*)", destination: "/maintenance", permanent: false } : { source: "/maintenance", destination: "/login", permanent: false }, { source: '/support', destination: '/support/faq', diff --git a/pages/api/file/bitrix.js b/pages/api/file/bitrix.js index 8b266fd..16de1f3 100644 --- a/pages/api/file/bitrix.js +++ b/pages/api/file/bitrix.js @@ -18,6 +18,7 @@ export default async function handler(req, res) { if(jwt.verify(cookies.jwt, process.env.JWT_SECRET_CLIENT)) { + console.log("req.query.urlreq.query.urlreq.query.urlreq.query.urlreq.query.url", req.query.url); try { axios.get(req.query.url, { diff --git a/pages/maintenance.js b/pages/maintenance.js new file mode 100644 index 0000000..1df5b79 --- /dev/null +++ b/pages/maintenance.js @@ -0,0 +1,56 @@ +import React from "react"; +import Head from "next/head"; + +import MainHeader from "./components/MainHeader"; +import Footer from "./components/Footer"; + +class Page503 extends React.Component +{ + constructor(props) + { + super(props); + this.state = {}; + } + + static getDerivedStateFromProps(nextProps, prevState) + { + return {}; + } + + componentDidMount() {} + + render() + { + return ( + + + ЛК Эволюция автолизинга + + + +
+
+
+
+
+
+

Личный кабинет

+
+
+
+

+ В настоящий момент ведутся технические работы. Если Вам + необходимо получить информацию, пожалуйста, свяжитесь с нами + по телефону: 8 800 333 75 75 +

+
+
+
+
+