PagesDeploymentConfig class
Constructors
-
PagesDeploymentConfig({String? compatibilityDate, List<
String> compatibilityFlags = const [], Map<String, PagesD1Binding> d1Databases = const {}, Map<String, PagesEnvVar> envVars = const {}, Map<String, PagesKVBinding> kvNamespaces = const {}, Map<String, PagesR2Binding> r2Buckets = const {}}) - Returns a new PagesDeploymentConfig instance.
Properties
- compatibilityDate ↔ String?
-
CompatibilityDate pins which Workers runtime behaviour the functions run under, as a date ("2024-01-01"). It is a pin, not a version: the runtime keeps that date's semantics for code deployed against it.
getter/setter pair
-
compatibilityFlags
↔ List<
String> -
CompatibilityFlags turn individual runtime behaviours on or off ahead of, or behind, the date above ("nodejs_compat").
getter/setter pair
-
d1Databases
↔ Map<
String, PagesD1Binding> -
D1Databases binds D1 databases in, keyed by binding name.
getter/setter pair
-
envVars
↔ Map<
String, PagesEnvVar> -
EnvVars are the environment variables the functions see, KEYED BY VARIABLE NAME. The key is the name; the value carries the value and whether it is a secret.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
-
kvNamespaces
↔ Map<
String, PagesKVBinding> -
KVNamespaces binds KV namespaces into the functions, KEYED BY THE BINDING NAME the code reads (
env.SESSIONS). Same shape for the two below.getter/setter pair -
r2Buckets
↔ Map<
String, PagesR2Binding> -
R2Buckets binds R2 buckets in, keyed by binding name.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
dynamic value) → PagesDeploymentConfig? -
Returns a new PagesDeploymentConfig instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< PagesDeploymentConfig> -
mapFromJson(
dynamic json) → Map< String, PagesDeploymentConfig> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< PagesDeploymentConfig> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.