feat: ajouter le fichier de configuration wrangler.jsonc et mettre à jour .gitignore

This commit is contained in:
2025-12-18 23:14:53 +01:00
parent b431d5b02b
commit e9e639a775
2 changed files with 52 additions and 2 deletions

1
.gitignore vendored
View File

@@ -25,4 +25,3 @@ logs
!.env.example
.wrangler
wrangler.jsonc

51
wrangler.jsonc Normal file
View File

@@ -0,0 +1,51 @@
{
"$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
}
}
}