mirror of
https://github.com/NicholaiVogel/dashore-incubator.git
synced 2026-03-31 06:40:32 +00:00
- add D1 database with drizzle ORM for wishlist data - create wishlist items, votes, and comments tables - implement server actions for CRUD, voting, comments - add wishlist page with auth protection - create components: stats, filters, item cards, add dialog, detail drawer - add optimistic updates for voting - update sidebar navigation with Infrastructure Wishlist link - configure middleware to use WORKOS_REDIRECT_URI env var for local dev
67 lines
1.9 KiB
JSON
67 lines
1.9 KiB
JSON
/**
|
|
* For more details on how to configure Wrangler, refer to:
|
|
* https://developers.cloudflare.com/workers/wrangler/configuration/
|
|
*/
|
|
/**
|
|
* 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": "dashore-incubator",
|
|
"main": ".open-next/worker.js",
|
|
"compatibility_date": "2025-12-01",
|
|
"routes": [
|
|
{ "pattern": "fortura.cc", "custom_domain": true }
|
|
],
|
|
"compatibility_flags": [
|
|
"nodejs_compat",
|
|
"global_fetch_strictly_public"
|
|
],
|
|
"assets": {
|
|
"binding": "ASSETS",
|
|
"directory": ".open-next/assets"
|
|
},
|
|
"images": {
|
|
// Enable image optimization
|
|
// see https://opennext.js.org/cloudflare/howtos/image
|
|
"binding": "IMAGES"
|
|
},
|
|
"services": [
|
|
{
|
|
// Self-reference service binding, the service name must match the worker name
|
|
// see https://opennext.js.org/cloudflare/caching
|
|
"binding": "WORKER_SELF_REFERENCE",
|
|
"service": "dashore-incubator"
|
|
}
|
|
],
|
|
"observability": {
|
|
"enabled": true
|
|
},
|
|
"d1_databases": [
|
|
{
|
|
"binding": "DB",
|
|
"database_name": "dashore-wishlist",
|
|
"database_id": "07a45d15-9492-42dc-ab13-e013ad078a9e",
|
|
"migrations_dir": "drizzle"
|
|
}
|
|
]
|
|
/**
|
|
* 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": { "MY_VARIABLE": "production_value" }
|
|
} |