Crate frontend_environment

Source

Re-exports§

pub use crate::axum::serve_files_with_script;

Modules§

axum

Structs§

FrontedEnvironment
Map of values that will be provided as environment-variable-like global variables to the frontend.

Functions§

inject_environment_script_tag
Rewrites HTML to inject a <script> tag (which contains global JS variables that act like environment variables) into the <head> tag.