Fumapress on Astro
Fumapress on Astro
@fumapress/astroruns the site ofpress.config.tsxon Astro, with the plugins,uioptions and search of Fumapress.- Add its default export to the
integrationsof Astro, and write the site withcreatePress()of@fumapress/astro/config. The core plugins are at@fumapress/astro/plugins/*. - It follows the
output, adapter,siteandbaseof Astro. A route rendered on demand without an adapter fails the build, naming the route. - With
output: "server", content renders on demand unlessmodeofcreatePress()sets it.mode: "force-static"builds a dynamic source without an adapter. - A build without an adapter warns that the
middlewareof plugins never runs. ui.renderPagecan return an.astrofile as the layout of a page, with a React root fromcreateIsland()of@fumapress/astro/clientinclient:*.LayoutProps<typeof app, "docs">andIslandProps<typeof app, "docs">of@fumapress/astro/configtype them.contentSourcePlugin()of@fumapress/astro/plugins/content-sourcerenders content collections and runtime sources: list it withcomponentsas a function of the page for components per page.@fumapress/astro/css/default.cssis the whole stylesheet,@fumapress/astro/css/preset.cssonly the styles of Fumapress for a custom Tailwind and Fumadocs UI setup.- It needs the Base UI build of Fumadocs UI, Astro 7.4 and Node.js 22.23.4 or later.
Last updated on