mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
16 lines
446 B
TypeScript
16 lines
446 B
TypeScript
import type { GetServerSideProps } from 'next';
|
|
|
|
import appConfig from 'configs/app/config';
|
|
import type { Props } from 'lib/next/getServerSideProps';
|
|
import { getServerSideProps as getServerSidePropsBase } from 'lib/next/getServerSideProps';
|
|
|
|
export const getServerSideProps: GetServerSideProps<Props> = async(args) => {
|
|
if (!appConfig.L2.isL2Network) {
|
|
return {
|
|
notFound: true,
|
|
};
|
|
}
|
|
|
|
return getServerSidePropsBase(args);
|
|
};
|