From e22eed402450ae63627bc11dc35331f427402078 Mon Sep 17 00:00:00 2001 From: Florian <45694132+flo-bit@users.noreply.github.com> Date: Sat, 28 Feb 2026 20:34:21 +0100 Subject: [PATCH] switch to wranger.jsonc --- wrangler.jsonc | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++ wrangler.toml | 11 ---------- 2 files changed, 57 insertions(+), 11 deletions(-) create mode 100644 wrangler.jsonc delete mode 100644 wrangler.toml diff --git a/wrangler.jsonc b/wrangler.jsonc new file mode 100644 index 0000000..3367770 --- /dev/null +++ b/wrangler.jsonc @@ -0,0 +1,57 @@ +/** + * For more details on how to configure Wrangler, refer to: + * https://developers.cloudflare.com/workers/wrangler/configuration/ + */ +{ + "$schema": "node_modules/wrangler/config-schema.json", + "name": "svelte-atproto-oauth-cloudflare-workers", + "main": ".svelte-kit/cloudflare/_worker.js", + "compatibility_date": "2025-12-25", + "compatibility_flags": ["nodejs_als"], + "assets": { + "binding": "ASSETS", + "directory": ".svelte-kit/cloudflare" + }, + "observability": { + "enabled": true + }, + /** + * Smart Placement + * https://developers.cloudflare.com/workers/configuration/smart-placement/#smart-placement + */ + // "placement": { "mode": "smart" } + /** + * Bindings + * Bindings allow your Worker to interact with resources on the Cloudflare Developer Platform, including + * databases, object storage, AI inference, real-time communication and more. + * https://developers.cloudflare.com/workers/runtime-apis/bindings/ + */ + /** + * Environment Variables + * https://developers.cloudflare.com/workers/wrangler/configuration/#environment-variables + * Note: Use secrets to store sensitive data. + * https://developers.cloudflare.com/workers/configuration/secrets/ + */ + "vars": { + "PUBLIC_HANDLE": "blento.app", + "PUBLIC_IS_SELFHOSTED": "", + "PUBLIC_DOMAIN": "https://blento.app", + "PUBLIC_GIPHY_API_TOKEN": "ltXijv1bkNPrEgnpJ0tIdLWXjnAeE7bL" + }, + "kv_namespaces": [ + { + "binding": "OAUTH_SESSIONS", + "id": "c44fc97274b84f5a97a8399b1977ad0d" + }, + { + "binding": "OAUTH_STATES", + "id": "115d8089d9ca4592a3a5e4a7d9146610" + } + ] + + /** + * Service Bindings (communicate between multiple Workers) + * https://developers.cloudflare.com/workers/wrangler/configuration/#service-bindings + */ + // "services": [ { "binding": "MY_SERVICE", "service": "my-service" } ] +} diff --git a/wrangler.toml b/wrangler.toml deleted file mode 100644 index 47ded72..0000000 --- a/wrangler.toml +++ /dev/null @@ -1,11 +0,0 @@ -name = "svelte-atproto-oauth-cloudflare-workers" -compatibility_date = "2024-12-01" -compatibility_flags = ["nodejs_compat"] - -[[kv_namespaces]] -binding = "OAUTH_SESSIONS" -id = "c44fc97274b84f5a97a8399b1977ad0d" - -[[kv_namespaces]] -binding = "OAUTH_STATES" -id = "115d8089d9ca4592a3a5e4a7d9146610" -- 2.51.2