cs-2022-class-profile/utils/getBasePath.ts

7 lines
293 B
TypeScript
Raw Normal View History

2022-12-29 18:01:19 -05:00
import config from "next/config";
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const { publicRuntimeConfig } = config();
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
const basePath = publicRuntimeConfig.basePath as string;
export { basePath };