mcfly/packages/config/nitro-config.js
Ayo Ayco 2a9b1e6c58
feat: config improvements (#53)
* feat: move defineMcFlyConfig to @mcflyjs/config

* feat: move defineMcFlyConfig to config package

* feat: programmatically build nitro dev server

* chore: bump versions

* feat: spread nitro config if exists

* chore: use nitro build programmatically

* feat: use nitro programmatically in prepare command

* feat: expose types for NitroConfig & McFlyConfig

* feat: use c12 to resolve mcfly config

* fix: too many symlinks

* chore: skip tests for now

* test: cheating

* test: cheating

* chore: update pnpm-lock
2024-12-31 00:25:25 +01:00

31 lines
575 B
JavaScript

/**
* @typedef {import('nitropack').NitroConfig} NitroConfig
* @type {NitroConfig}
*/
export const nitroConfig = {
framework: {
name: 'McFly',
},
compatibilityDate: '2024-12-08',
devServer: {
watch: ['./src/pages', './src/components'],
},
serverAssets: [
{
baseName: 'pages',
dir: './src/pages',
},
{
baseName: 'components',
dir: './src/components',
},
],
imports: {
presets: [
{
from: 'web-component-base',
imports: ['WebComponent', 'html', 'attachEffect'],
},
],
},
}