mcfly/packages/config/src/nitro-config.ts
Ayo Ayco 280e2f6150 chore(create-mcfly, config): migrate to typescript
- initial migration before we do the core
2025-02-28 21:50:28 +01:00

36 lines
683 B
TypeScript

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