diff --git a/.gitignore b/.gitignore index 2b9e422..efd3c75 100644 --- a/.gitignore +++ b/.gitignore @@ -24,5 +24,4 @@ logs .env.* !.env.example -.wrangler -wrangler.jsonc \ No newline at end of file +.wrangler \ No newline at end of file diff --git a/wrangler.jsonc b/wrangler.jsonc new file mode 100644 index 0000000..73fa156 --- /dev/null +++ b/wrangler.jsonc @@ -0,0 +1,64 @@ +{ + "$schema": "node_modules/wrangler/config-schema.json", + "name": "artapi", + "compatibility_date": "2025-12-13", + "compatibility_flags": [ + "nodejs_compat", + ], + "preview_urls": true, + "workers_dev": true, + "main": "./.output/server/index.mjs", + "routes": [ + { + "pattern": "api.arthurdanjou.fr", + "zone_name": "arthurdanjou.fr", + "custom_domain": true + } + ], + "placement": { + "mode": "smart", + }, + "assets": { + "binding": "ASSETS", + "directory": "./.output/public/" + }, + "d1_databases": [ + { + "binding": "DB", + "database_id": "d6c86b05-f4aa-4dcf-8962-e0b0d538d302" + } + ], + "kv_namespaces": [ + { + "binding": "CACHE", + "id": "0158163e35cf4804832a38863aed8ee9", + } + ], + "observability": { + "enabled": true, + "logs": { + "enabled": true, + "head_sampling_rate": 1, + "persist": true, + "invocation_logs": true + }, + "traces": { + "enabled": true, + "head_sampling_rate": 1, + "persist": true + } + }, + "vars": { + "STUDIO_GITHUB_CLIENT_ID": "Ov23liRJM27KxpPC6H7W", + "STUDIO_GITHUB_CLIENT_SECRET": "3dabd49c6a81c89c5531245044d78a0c27cf5171", + "NUXT_DISCORD_ID": "1208858957473644594", + "NUXT_DISCORD_TOKEN": "lET-ZxA4DXWpyp-GyY1jccdj0KQeWM-6x8LDcaiNy3_eLoda7Ae0KQcIbByaqseE55rO", + "NUXT_DISCORD_USER_ID": "179635349100691456", + "NUXT_STATUS_PAGE": "https://status.arthurdanjou.fr/api/status-page/homelab", + "NUXT_WAKATIME_CODING": "22892992-494a-4f3c-8b5e-e1061a96b6fb", + "NUXT_WAKATIME_EDITORS": "e4dd4851-00f1-4084-bafe-b2e7eb637159", + "NUXT_WAKATIME_LANGUAGES": "839cd051-8c7e-4b42-a851-bc1fb67afb0f", + "NUXT_WAKATIME_OS": "79afc5a2-2e5c-4b9b-a5ad-dbd2742eeb69", + "NUXT_WAKATIME_USER_ID": "@arthurdanjou" + } +} \ No newline at end of file