{
	// Worker name - change this to your preferred name
	"name": "quit-smoking-app",
	// Use the OpenNext preset for Next.js on Cloudflare Workers
	"main": ".open-next/worker.js",
	// Compatibility settings for Node.js APIs
	"compatibility_date": "2024-09-23",
	"compatibility_flags": [
		"nodejs_compat"
	],
	// Set up route matching for static assets
	"assets": {
		"directory": ".open-next/assets",
		"binding": "ASSETS"
	},
	// D1 Database binding
	"d1_databases": [
		{
			"binding": "DB",
			"database_name": "quit-smoking-db",
			"database_id": "1fca511a-cf91-4fde-854b-561ed92abfa8"
		}
	],
	// Environment variables
	"vars": {
		"NODE_ENV": "production"
	},
	// Custom domain
	"routes": [
		{
			"pattern": "quittraq.com/*",
			"zone_name": "quittraq.com"
		},
		{
			"pattern": "www.quittraq.com/*",
			"zone_name": "quittraq.com"
		}
	],
	// Observability
	"observability": {
		"logs": {
			"enabled": false,
			"invocation_logs": true
		}
	}
}