Hi everyone, this is my first time using cloudflare so sorry if I'm missing something obvious!
I've created a Nuxt project with the help of npm create cloudflare I then deployed it successfully with no changes. Now I want to setup environments so I can run a separate dev worker with a separate D1 database and then deploy them from GitLab.
So I made the following changes to the wrangler file:
{
"$schema": "node_modules/wrangler/config-schema.json",
"main": "./.output/server/index.mjs",
"compatibility_date": "2025-11-01",
"name": "dialnote-prod",
"assets": {
"binding": "ASSETS",
"directory": "./.output/public/"
},
"observability": {
"enabled": true
},
"env": {
"dev": {
"name": "dialnote-dev",
"d1_databases": [
{
"binding": "db",
"database_name": "dialnote_dev",
"database_id": "removed"
}
]
},
"prod": {
"name": "dialnote-prod",
"d1_databases": [
{
"binding": "db",
"database_name": "dialnote_prod",
"database_id": "removed"
}
]
}
}
}