Repository navigation
wrangler@3.14.0
Minor Changes
-
#4204
38fdbe9bThanks @matthewdavidrodgers! - Support user limits for CPU timeUser limits provided via script metadata on upload
Example configuration:
[limits] cpu_ms = 20000 -
#2162
a1f212e6Thanks @WalshyDev! - add support for service bindings inwrangler pages devby providing the
new--service|-sflag which accepts an array ofBINDING_NAME=SCRIPT_NAME
whereBINDING_NAMEis the name of the binding andSCRIPT_NAMEis the name
of the worker (as defined in itswrangler.toml), such workers need to be
running locally with withwrangler dev.For example if a user has a worker named
worker-a, in order to locally bind
to that they'll need to open two different terminals, in each navigate to the
respective worker/pages application and then run respectivelywrangler devand
wrangler pages ./publicDir --service MY_SERVICE=worker-athis will add the
MY_SERVICEbinding to pages' workerenvobject.Note: additionally after the
SCRIPT_NAMEthe name of an environment can be specified,
prefixed by an@(as in:MY_SERVICE=SCRIPT_NAME@PRODUCTION), this behavior is however
experimental and not fully properly defined.