Docs
Reference

Deno Deploy layers

A layer's variables, inherited by every app that includes it, merged per key.

A layer's variables, inherited by every app that includes it, merged per key.

The connection

WhatThis provider
VendorDeno Deploy
Keydeno-deploy-layer-env
Availabilityavailable. You can connect it today.
Credential penv holdsdeno-token
Values read backno
Activationon-next-deploy

What it moves

DirectionWhat it does
exportWrites names and values from penv into the store.

Deno Deploy returns no value once it holds one, so penv can write here and cannot read back.

When a written value goes live

on-next-deploy. A new value waits there and arrives with your next deploy.

What happens to a name that exists

DirectionPolicies you can pick
exportcreate_only, overwrite, overwrite_and_prune

How syncs work says what each one does.

How you connect

You paste a credential you already hold. penv seals it and never shows it again.

FieldLabelKindRequiredWhat it is
tokenAccess tokensecret, masked here and sealedyesA Deno Deploy access token that can edit layers.

What a mapping asks for

Answered once per environment you map.

FieldLabelKindRequiredAdvancedWhat it is
layerSlugLayertextyesnoThe layer whose variables this environment maps onto. Every app that includes it reads them.
contextContextchoiceyesyesDeno keeps production, development and build as separate sets. One of Production, Development, Build. Starts at production.

Permissions it needs

penv probes for these when it verifies the connection.

PermissionDirectionsBlockingWithout it
layers:readevery directionyesPreview cannot list the layer's variables.
layers:writeexportyesExport cannot write anything.