mirror of
https://github.com/modernweb-dev/rocket.git
synced 2026-03-15 00:41:21 +00:00
34 lines
1019 B
JavaScript
34 lines
1019 B
JavaScript
import { rocketLaunch } from '@rocket/launch';
|
|
import { rocketBlog } from '@rocket/blog';
|
|
import { rocketSearch } from '@rocket/search';
|
|
import { absoluteBaseUrlNetlify } from '@rocket/core/helpers';
|
|
import { adjustPluginOptions } from 'plugins-manager';
|
|
|
|
/** @type {Partial<import("./packages/cli/types/main").RocketCliOptions>} */
|
|
const config = {
|
|
presets: [rocketLaunch(), rocketBlog(), rocketSearch()],
|
|
absoluteBaseUrl: absoluteBaseUrlNetlify('http://localhost:8080'),
|
|
setupUnifiedPlugins: [
|
|
adjustPluginOptions('mdjsSetupCode', {
|
|
simulationSettings: {
|
|
simulatorUrl: '/simulator/',
|
|
themes: [
|
|
{ key: 'light', name: 'Light' },
|
|
{ key: 'dark', name: 'Dark' },
|
|
],
|
|
platforms: [
|
|
{ key: 'web', name: 'Web' },
|
|
{ key: 'android', name: 'Android' },
|
|
{ key: 'ios', name: 'iOS' },
|
|
],
|
|
},
|
|
}),
|
|
],
|
|
// serviceWorkerName: 'sw.js',
|
|
// pathPrefix: '/_site/',
|
|
|
|
// emptyOutputDir: false,
|
|
};
|
|
|
|
export default config;
|