mcfly/packages/config/index.js
Ayo Ayco 2e5a44d5e5 feat(config): add compatibilityDate
- prevents the nitro server prompt to auto add compatibilityDate; it is used for cloudflare workers if I understand it correctly
2024-12-08 21:20:33 +01:00

41 lines
821 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"],
},
],
},
};
}