From ec746095acb1d9c73484152cc926e5dcc12bb1ac Mon Sep 17 00:00:00 2001 From: Nathan Birrell Date: Tue, 16 Jul 2024 17:43:13 +0200 Subject: [PATCH 1/3] feat(config): add port config --- .changeset/brown-wolves-judge.md | 5 +++++ astro.config.mjs | 2 +- bin/eventcatalog.config.ts | 1 + package-lock.json | 4 ++-- 4 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 .changeset/brown-wolves-judge.md diff --git a/.changeset/brown-wolves-judge.md b/.changeset/brown-wolves-judge.md new file mode 100644 index 00000000..3d7de487 --- /dev/null +++ b/.changeset/brown-wolves-judge.md @@ -0,0 +1,5 @@ +--- +'@eventcatalog/core': patch +--- + +feat(config): add port config 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/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", From 2aed814ffd768dccd7c91c2e8ab72e2ec6ec4045 Mon Sep 17 00:00:00 2001 From: David Boyne Date: Wed, 17 Jul 2024 06:21:45 +0100 Subject: [PATCH 2/3] added port to default example --- examples/default/eventcatalog.config.js | 1 + 1 file changed, 1 insertion(+) 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', From 271d1ec6812f2cf92ca8dec71e7402f2973deaf2 Mon Sep 17 00:00:00 2001 From: David Boyne Date: Wed, 17 Jul 2024 06:24:35 +0100 Subject: [PATCH 3/3] Update brown-wolves-judge.md --- .changeset/brown-wolves-judge.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/brown-wolves-judge.md b/.changeset/brown-wolves-judge.md index 3d7de487..0be6277e 100644 --- a/.changeset/brown-wolves-judge.md +++ b/.changeset/brown-wolves-judge.md @@ -2,4 +2,4 @@ '@eventcatalog/core': patch --- -feat(config): add port config +feat(core): added ability to configure port on EventCatlog