2023-03-19 16:09:10 +03:00

13 lines
336 B
JavaScript

import { serverRuntimeConfigSchema } from './schema/runtime-config';
import getConfig from 'next/config';
const { serverRuntimeConfig } = getConfig();
function getServerConfig() {
const { COOKIE_TOKEN_NAME } = serverRuntimeConfigSchema.parse(serverRuntimeConfig);
return { COOKIE_TOKEN_NAME };
}
export default getServerConfig;