41 lines
820 B
JavaScript
41 lines
820 B
JavaScript
/**
|
|
* @typedef {import('nitropack').NitroConfig} NitroConfig
|
|
*/
|
|
|
|
/**
|
|
* Returns the Nitro configuration for a McFly project
|
|
* @returns {NitroConfig}
|
|
*/
|
|
export default function () {
|
|
return {
|
|
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'],
|
|
},
|
|
{
|
|
from: '@mcflyjs/core',
|
|
imports: ['useMcFlyRoute', 'defineMcFlyConfig'],
|
|
},
|
|
],
|
|
},
|
|
}
|
|
}
|