Add a database, key-value storage and file storage to your app
You can now store application data on Arkor with three managed bindings:
- D1, a SQL database for records such as posts, orders and account settings.
- KV, a key-value store for configuration and lookup data.
- R2, object storage for uploads and generated files.
With automatic default storage enabled, a deployment gets a database, namespace and bucket without a separate provisioning step. Production and each branch preview have their own resources, so you can try changes against preview data without writing to the production database.
Use Bindings in the project's sidebar to add named resources and choose a location for a new database or bucket. They become available on the next deployment in their environment.
Next.js apps access storage through @stayingupwind/sdk, using Cloudflare's native methods. For
example, a Route Handler can save a file with blob.put() or query records with db.prepare();
there are no storage credentials to put in your code. Read storage at request time, since it is
not available during next build.
See Bindings for setup and examples.