StudioCMS Config
이 콘텐츠는 아직 번역되지 않았습니다.
The StudioCMS config file is used to configure various aspects of StudioCMS in your Astro project. It allows you to define settings such as database configuration, plugins, component registry, localization, and feature flags.
The studiocms.config.* file, just like the Astro config file, supports the following extensions: .cjs, .js, .mjs, .cts, .ts, .mts. The following example will show .mjs file extension being used.
Example file structure
Section titled “Example file structure”- .env
- astro.config.mjs
- studiocms.config.mjs
- package.json
디렉터리src
- …
Example configuration files
Section titled “Example configuration files”import node from '@astrojs/node';import studioCMS from 'studiocms';import { defineConfig } from 'astro/config';
export default defineConfig({ site: 'https://demo.studiocms.dev/', output: 'server', adapter: node({ mode: "standalone" }), integrations: [ studioCMS() ],});import { defineStudioCMSConfig } from "studiocms/config";
export default defineStudioCMSConfig({ dbStartPage: false, // other configuration options})Further Reading
Section titled “Further Reading”For more information on the StudioCMS configuration options, see the reference page.