pub async fn get_initial_consts(&self, locale: &str) -> ApiResponse {
        let js_file = match self.initial_consts_js(locale).await {
            Ok(js) => js,
            Err(err) => return ApiResponse::err(StatusCode::INTERNAL_SERVER_ERROR, &fmt_err(&err)),
        };

        ApiResponse::ok(&js_file).content_type("text/javascript")
    }
Provides the JS file of initial constants.
packages/perseus/src/turbine/server.rs