fix zero config
This commit is contained in:
parent
aa701c7c0c
commit
29ad1f1448
3 changed files with 3 additions and 4 deletions
|
@ -1,6 +1,4 @@
|
||||||
// import registerComponents from "./packages/register-components";
|
// import registerComponents from "./packages/register-components";
|
||||||
import defineConfig from "./packages/define-config";
|
import defineConfig from "./packages/define-config";
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({});
|
||||||
onBuild: [],
|
|
||||||
});
|
|
||||||
|
|
|
@ -5,5 +5,6 @@ export type McFlyConfig = {
|
||||||
onBuild?: Array<(event: NitroApp) => void>;
|
onBuild?: Array<(event: NitroApp) => void>;
|
||||||
};
|
};
|
||||||
export default function defineConfig(config: McFlyConfig) {
|
export default function defineConfig(config: McFlyConfig) {
|
||||||
return () => ({ ...config, onBuild: [...config.onBuild, setUpSsr()] });
|
const onBuild = config.onBuild ?? [];
|
||||||
|
return () => ({ ...config, onBuild: [...onBuild, setUpSsr()] });
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 1.1 KiB |
Loading…
Reference in a new issue