Skip to content

Commit

Permalink
chore: Enable Cloudflare Smart Placement
Browse files Browse the repository at this point in the history
  • Loading branch information
jim60105 committed Jan 3, 2024
1 parent 45bca44 commit 26c7df6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
{
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
},
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file",
"cSpell.ignorePaths": [
Expand All @@ -23,5 +11,13 @@
"*/assets/*",
"package.json"
],
"cSpell.words": ["badgen"]
"cSpell.words": [
"badgen"
],
"[javascript][typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
}
}
}
4 changes: 4 additions & 0 deletions wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ main = "./src/index.ts"
send_metrics = false
workers_dev = true

[placement]
# https://developers.cloudflare.com/workers/configuration/smart-placement/#enable-smart-placement-via-wrangler
mode = "smart"

[[d1_databases]]
binding = "ViewCounter" # i.e. available in your Worker on env.DB
database_id = "72f5fd97-3f01-40e7-b31f-6c3117a9c624"
Expand Down

0 comments on commit 26c7df6

Please sign in to comment.