diff --git a/.changeset/brown-wolves-judge.md b/.changeset/brown-wolves-judge.md new file mode 100644 index 00000000..0be6277e --- /dev/null +++ b/.changeset/brown-wolves-judge.md @@ -0,0 +1,5 @@ +--- +'@eventcatalog/core': patch +--- + +feat(core): added ability to configure port on EventCatlog diff --git a/astro.config.mjs b/astro.config.mjs index c4e88171..fd62b695 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -16,7 +16,7 @@ import config from './eventcatalog.config'; // https://astro.build/config export default defineConfig({ base: config.base || '/', - server: { port: 3000 }, + server: { port: config.port || 3000 }, // https://docs.astro.build/en/reference/configuration-reference/#site site: config.homepageLink || 'https://eventcatalog.dev/', diff --git a/bin/eventcatalog.config.ts b/bin/eventcatalog.config.ts index 158a1a61..5100f1fb 100644 --- a/bin/eventcatalog.config.ts +++ b/bin/eventcatalog.config.ts @@ -9,6 +9,7 @@ export interface Config { homepageLink: string; editUrl: string; base?: string; + port?: string; trailingSlash?: boolean; logo?: { alt: string; diff --git a/examples/default/eventcatalog.config.js b/examples/default/eventcatalog.config.js index c7c4cfa2..ff9bbb4a 100644 --- a/examples/default/eventcatalog.config.js +++ b/examples/default/eventcatalog.config.js @@ -5,6 +5,7 @@ export default { organizationName: 'Your Company', homepageLink: 'https://eventcatalog.dev/', editUrl: 'https://github.com/event-catalog/eventcatalog/edit/main', + port: 3000, logo: { alt: 'EventCatalog', src: '/logo.png', diff --git a/package-lock.json b/package-lock.json index 9911f5ac..f906913c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@eventcatalog/core", - "version": "2.0.12", + "version": "2.0.17", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@eventcatalog/core", - "version": "2.0.12", + "version": "2.0.17", "dependencies": { "@astrojs/check": "^0.7.0", "@astrojs/markdown-remark": "^5.1.0",