import type { UiConfig } from '@stacksjs/types' import app from './app' /** * STX Configuration for Stacks * Note: Dashboard mode overrides these settings via serve() options */ export default { // Pin template topology to the application resources directory. This keeps // component, layout and partial resolution stable for CLI, dev and build // processes instead of asking each process to infer the same root. root: 'resources', // Where stx keeps everything it generates: the compiled-template cache, the // ts-css CSS cache, client-script bundles, the route manifest and route // types. Stacks keeps every runtime-owned directory under storage/ rather // than a `.stx` in the project root - see `stxPath()` in @stacksjs/path, // which also exports this as STX_DIR for processes that never read a config. stateDir: 'storage/framework/stx', // Components, layouts and partials directories. // // These are resolved RELATIVE TO the explicit `resources` stx root. // Spelling them `resources/components` here made stx join the // root on a second time and look in `resources/resources/components`, so // `` in a template resolved to nothing and stx warned on every boot. componentsDir: 'components', // Expose @stacksjs/components' ui library (,