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;