mcfly/site/mcfly.config.mjs
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

23 lines
455 B
JavaScript

import { defineMcFlyConfig } from '@mcflyjs/config'
export default defineMcFlyConfig({
components: 'js',
nitro: {
devServer: {
watch: ['../packages'],
},
routeRules: {
'/chat': {
redirect: {
to: 'https://matrix.to/#/#mcfly:matrix.org',
statusCode: 302,
},
},
},
compressPublicAssets: {
gzip: true,
brotli: true,
},
compatibilityDate: '2024-12-08',
},
})