Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate orama_db.json in the dist/client folder on Astro #638

Closed
okikio opened this issue Feb 17, 2024 · 0 comments
Closed

Generate orama_db.json in the dist/client folder on Astro #638

okikio opened this issue Feb 17, 2024 · 0 comments

Comments

@okikio
Copy link
Contributor

okikio commented Feb 17, 2024

Describe the bug

The Orama Astro Plugin generates the orama_db.json file in the root dist folder, when ideally it should be generating it in the dist/client folder

To Reproduce

  1. Install Astro & the Astro Orama Plugin
  2. Use try to fetch the db using getOramaDB("...") using the Astro plugin
  3. Error on client saying the orama_db.json doesn't exist

Expected behavior

The expected behaviour is that the orama_db.json file should be placed in this path dist/client/assets/orama_db.json

Environment Info

OS: Ubuntu 22.04
Node: 21
@orama/plugin-astro: 2.0.7

Affected areas

Environment/OS

Additional context

It's an incredibly simple fix, we just need to use dir instead of config.outDir. I'll draft a pr for fixing this

PR #639

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant