diff --git a/packages/studiocms_core/src/hooks/config-setup.ts b/packages/studiocms_core/src/hooks/config-setup.ts index b637e7b766..b6e22efc93 100644 --- a/packages/studiocms_core/src/hooks/config-setup.ts +++ b/packages/studiocms_core/src/hooks/config-setup.ts @@ -39,7 +39,7 @@ export const configSetup = defineUtility('astro:config:setup')( export const AuthConfig = ${JSON.stringify(options.dashboardConfig.AuthConfig)}; export const developerConfig = ${JSON.stringify(options.dashboardConfig.developerConfig)}; export const defaultFrontEndConfig = ${JSON.stringify(options.defaultFrontEndConfig)}; - export const sdkConfig = ${JSON.stringify(options.sdk)}; + export const sdk = ${JSON.stringify(options.sdk)}; `, 'studiocms:version': ` export default '${version}'; diff --git a/packages/studiocms_core/src/sdk-utils/cache.ts b/packages/studiocms_core/src/sdk-utils/cache.ts index cae7fd00e0..65bd36b17f 100644 --- a/packages/studiocms_core/src/sdk-utils/cache.ts +++ b/packages/studiocms_core/src/sdk-utils/cache.ts @@ -1,4 +1,4 @@ -import { sdkConfig } from 'studiocms:config'; +import { sdk } from 'studiocms:config'; import { CMSSiteConfigId } from '../consts'; import studioCMS_SDK_GET from './get'; import type { @@ -15,7 +15,7 @@ export type { STUDIOCMS_SDK_CACHE, PageDataCacheObject, SiteConfigCacheObject }; const { cacheConfig, cacheConfig: { enabled: isEnabled }, -} = sdkConfig; +} = sdk; /** * Cache object to store content retrieved from the database. diff --git a/packages/studiocms_core/src/stubs/core.ts b/packages/studiocms_core/src/stubs/core.ts index 713347e38a..7206d75286 100644 --- a/packages/studiocms_core/src/stubs/core.ts +++ b/packages/studiocms_core/src/stubs/core.ts @@ -35,7 +35,7 @@ dtsFile.addModule('studiocms:config', { typeDef: `import('${resolve('../schemas/config/index.ts')}').StudioCMSConfig['defaultFrontEndConfig']`, }, { - name: 'sdkConfig', + name: 'sdk', typeDef: `import('${resolve('../schemas/config/index.ts')}').StudioCMSConfig['sdk']`, }, ],