컨텐츠로 건너뛰기

index

이 내용은 아직 번역본이 없습니다.

function studioCMSDevApps(opts?: {
appsConfig: {
libSQLViewer: | boolean
| {
endpoint: string;
};
wpImporter: | boolean
| {
endpoint: string;
};
};
endpoint: string;
verbose: boolean;
}): AstroIntegration

Defined in: studiocms/packages/studiocms_devapps/src/index.ts:43

Integrates StudioCMS development applications with Astro.

Optional configuration options for StudioCMS DevApps.

{ libSQLViewer: | boolean | { endpoint: string; }; wpImporter: | boolean | { endpoint: string; }; } = AppsConfigSchema

| boolean | { endpoint: string; } = ...

Astro DB LibSQL Viewer App Config

| boolean | { endpoint: string; } = ...

StudioCMS WP API Importer App Config

string = ...

boolean = ...

AstroIntegration

The Astro integration object for StudioCMS DevApps.

This function sets up the StudioCMS development applications for use in an Astro project. It parses the provided options, sets up virtual imports, and adds development toolbar apps based on the configuration.

The integration is enforced to run only in development mode.

import { studioCMSDevApps } from '@studiocms/devapps';
export default {
integrations: [
studioCMSDevApps({
endpoint: '/api',
appsConfig: {
wpImporter: {
enabled: true,
endpoint: '/wp-import',
},
libSQLViewer: {
enabled: true,
},
},
verbose: true,
}),
],
};

Renames and re-exports studioCMSDevApps