STATUS: solved underlying problem by just using static redirects.
CONTEXT: cloudflare hosted starlight site at https://ratatui.rs
I'm trying to rename some content paths and add redirects.
Added cloudflare adapter, switched to hybrid mode added some ssr settings to the vite config (relevant commit)
Running npm astro build sees the following error:
Cannot access 'ASTRO_VERSION' before initialization
Stack trace:
at createAstro (file:///Users/joshka/local/ratatui-website/dist/_worker.js/chunks/astro_AtHjLoge.mjs:393:26)
at ModuleJob.run (node:internal/modules/esm/module_job:218:25)
at async BuildPipeline.retrieveManifest (file:///Users/joshka/local/ratatui-website/node_modules/astro/dist/core/build/pipeline.js:93:26)
at async staticBuild (file:///Users/joshka/local/ratatui-website/node_modules/astro/dist/core/build/static-build.js:108:7)
at async AstroBuilder.run (file:///Users/joshka/local/ratatui-website/node_modules/astro/dist/core/build/index.js:164:7)
I'm guessing that this is something to do with the way that the async happens here.
I'm not entirely sure how this file is generated (guessing it's vite, but I'm not a frontend dev)
Any ideas on how to fix this?

