Building Eventcatalog
By default, EventCatalog exports a static HTML site. This means you can deploy your application anywhere you want.
Have large or slow deployments?
Some users have large catalogs, and slow deployments. This is because the static mode builds the entire catalog into HTML files.
If you have a large catalog you may want to use SSR mode, this will give you a server-side rendered application. This reduces build times, and renders pages on the fly.
Building your EventCatalog (Static)
To build your Catalog you will need to run:
npm run build
This will output one directory
dist
- Your EventCatalog as Static HTML
Passing custom options
Added in
eventcatalog@2.16.5
EventCatalog uses Astro to build the application. You can pass custom options to the build command by using the --
prefix.
Passing custom options
npx eventcatalog dev --debug -- --env=production --port=3000