Minor Changes
-
#4204
38fdbe9b
Thanks @matthewdavidrodgers! - Support user limits for CPU timeUser limits provided via script metadata on upload
Example configuration:
[limits] cpu_ms = 20000
-
#2162
a1f212e6
Thanks @WalshyDev! - add support for service bindings inwrangler pages dev
by providing the
new--service
|-s
flag which accepts an array ofBINDING_NAME=SCRIPT_NAME
whereBINDING_NAME
is the name of the binding andSCRIPT_NAME
is 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 dev
and
wrangler pages ./publicDir --service MY_SERVICE=worker-a
this will add the
MY_SERVICE
binding to pages' workerenv
object.Note: additionally after the
SCRIPT_NAME
the 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.