Closed okikio closed 7 months ago
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
dist
dist/client
getOramaDB("...")
orama_db.json
The expected behaviour is that the orama_db.json file should be placed in this path dist/client/assets/orama_db.json
dist/client/assets/orama_db.json
OS: Ubuntu 22.04 Node: 21 @orama/plugin-astro: 2.0.7
Environment/OS
It's an incredibly simple fix, we just need to use dir instead of config.outDir. I'll draft a pr for fixing this
dir
config.outDir
PR #639
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 thedist/client
folderTo Reproduce
getOramaDB("...")
using the Astro pluginorama_db.json
doesn't existExpected behavior
The expected behaviour is that the
orama_db.json
file should be placed in this pathdist/client/assets/orama_db.json
Environment Info
Affected areas
Environment/OS
Additional context
It's an incredibly simple fix, we just need to use
dir
instead ofconfig.outDir
. I'll draft a pr for fixing thisPR #639