home / docs / sections

sections: settings:setting-publish-secrets

This data as json

id page ref title content breadcrumbs references
settings:setting-publish-secrets settings setting-publish-secrets Using secrets with datasette publish The datasette publish and datasette package commands both generate a secret for you automatically when Datasette is deployed. This means that every time you deploy a new version of a Datasette project, a new secret will be generated. This will cause signed cookies to become invalid on every fresh deploy. You can fix this by creating a secret that will be used for multiple deploys and passing it using the --secret option: datasette publish cloudrun mydb.db --service=my-service --secret=cdb19e94283a20f9d42cca5 ["Settings"] []
Powered by Datasette · Queries took 2.397ms