Module util

Module util 

Source

Structs§

OptionEnvMap
This is a transparent value type wrapping FxIndexMap<RcStr,Option<RcStr>>. As opposed to [EnvMap], this map allows for None values, which means that the variables should be replace with undefined.

Enums§

MiddlewareMatcherKind
NextRuntime
PathType

Functions§

app_function_name
defines
file_content_rope
foreign_code_context_condition
get_asset_path_from_pathname
get_asset_prefix_from_pathname
get_transpiled_packages
internal_assets_conditions
Determines if the module is an internal asset (i.e overlay, fallback) coming from the embedded FS, don’t apply user defined transforms.
load_next_js_json_file
load_next_js_jsonc_file
load_next_js_template
Loads a next.js template, replaces replacements and injections and makes sure there are none left over.
load_next_js_template_no_imports
Loads a next.js template but does not require that any relative imports are present or rewritten. This is intended for small internal templates that do not have their own imports but still use template variables/injections.
module_styles_rule_condition
pages_function_name
pathname_for_path
Converts a filename within the server root into a next pathname.
styles_rule_condition