13 lines
336 B
JavaScript
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;
|