import { GetStaticProps, NextPage } from "next";
import Logo from "../public/logo.svg";
import { isInMaintenanceMode } from "../utils/constants";
const Maintenance: NextPage = () => {
return (
The site is currently under maintenance and will be back shortly…
);
};
export const getStaticProps: GetStaticProps = () => {
if (isInMaintenanceMode) {
return {
redirect: {
destination: "/",
permanent: true,
},
};
}
return { props: {} };
};
export default Maintenance;