v0.4.1
@frontman/client
Patch Changes
-
#384
59ee255Thanks @BlueHotDog! - fix(astro): load client from production CDN instead of localhostThe Astro integration defaulted
clientUrltohttp://localhost:5173/src/Main.res.mjsunconditionally, which only works during local frontman development. When installed from npm, users saw requests to localhost:5173 instead of the production client.Now infers
isDevfrom the host (matching the Vite plugin pattern): production host loads the client fromhttps://app.frontman.sh/frontman.es.jswith CSS fromhttps://app.frontman.sh/frontman.css.Also fixes the standalone client bundle crashing with
process is not definedin browsers by replacingprocess.env.NODE_ENVat build time (Vite lib mode doesn't do this automatically).
@frontman-ai/astro
Patch Changes
-
#384
59ee255Thanks @BlueHotDog! - fix(astro): load client from production CDN instead of localhostThe Astro integration defaulted
clientUrltohttp://localhost:5173/src/Main.res.mjsunconditionally, which only works during local frontman development. When installed from npm, users saw requests to localhost:5173 instead of the production client.Now infers
isDevfrom the host (matching the Vite plugin pattern): production host loads the client fromhttps://app.frontman.sh/frontman.es.jswith CSS fromhttps://app.frontman.sh/frontman.css.Also fixes the standalone client bundle crashing with
process is not definedin browsers by replacingprocess.env.NODE_ENVat build time (Vite lib mode doesn't do this automatically).