add DISABLE_UI, DISABLE_ADMIN

This commit is contained in:
Brian Cao 2022-10-27 12:14:34 -07:00
parent 736f06442c
commit 99c975c329
13 changed files with 94 additions and 20 deletions

View file

@ -1,3 +1,11 @@
import Index from './index';
export default Index;
export async function getServerSideProps() {
return {
props: {
pageDisabled: !!process.env.DISABLE_UI,
},
};
}