Skip to content

Commit

Permalink
fix(core): fixed search, now set output path on build (#620)
Browse files Browse the repository at this point in the history
* fix(core): fixed search, now set output path on build

* Create grumpy-dragons-hug.md

* fix(core): fixed search, now set output path on build

---------

Co-authored-by: David Boyne <davidboyne@Davids-MBP.upp.com>
  • Loading branch information
boyney123 and David Boyne authored Jul 19, 2024
1 parent d808eb9 commit 3dc05d8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/grumpy-dragons-hug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@eventcatalog/core": patch
---

fix(core): fixed search, now set output path on build
5 changes: 5 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,21 @@ import mdx from '@astrojs/mdx';
import react from '@astrojs/react';
import pagefind from "astro-pagefind";
import { mermaid } from "./src/remark-plugins/mermaid"
import { join } from 'node:path';

/** @type {import('bin/eventcatalog.config').Config} */
import config from './eventcatalog.config';
import expressiveCode from 'astro-expressive-code';

const coreDirectory = process.env.CATALOG_DIR || process.cwd();

// https://astro.build/config
export default defineConfig({
base: config.base || '/',
server: { port: config.port || 3000 },

outDir: join(coreDirectory, 'dist'),

// https://docs.astro.build/en/reference/configuration-reference/#site
site: config.homepageLink || 'https://eventcatalog.dev/',

Expand Down

0 comments on commit 3dc05d8

Please sign in to comment.