Open ref-thomasledoux1 opened 2 months ago
Thanks for the heads-up. We can always cast it to string before comparing. I need to check again if I can simplify this code in newer Astro versions. Basically, config.outDir
supposed to be enough but I had issues with it in hybrid before.
I've now encountered another issue which comes with Astro 5 and this integration. I'm using node adapter and the files are built into dist
whereas astro with node builds client assets into dist/client
. It is probably caused by the condition of output === hybrid
which is not met.
I guess for now simply a config option to manually set the outdir could work.
When upgrading to Astro v5 (beta), I noticed that my build started failing on node_modules/astro-pagefind/src/pagefind.ts. The error is caused by a check for
config.output
where it's compared tohybrid
. Since this output mode doesn't exist anymore in v5 of Astro, the check fails. Not sure how you could fix it without breaking it for v4 (and before) users though..