Skip to content

Commit

Permalink
Add production settings
Browse files Browse the repository at this point in the history
  • Loading branch information
hodgef committed Dec 22, 2023
1 parent c599172 commit 5baa4ce
Show file tree
Hide file tree
Showing 11 changed files with 431 additions and 98 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [16.x]
node-version: [20.x]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
if: ${{ github.actor != 'dependabot[bot]' }}
strategy:
matrix:
node-version: [16.x]
node-version: [20.x]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull_request_dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
if: ${{ github.actor == 'dependabot[bot]' }}
strategy:
matrix:
node-version: [16.x]
node-version: [20.x]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
Expand Down
49 changes: 44 additions & 5 deletions app.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,51 @@
# ----------------------------------------------------------------------------------

name = "apiker-demo"
account_id = "YOUR_CLOUDFLARE_ACCOUNT_ID"
workers_dev = true
account_id = "bc2eda78f9c47c829244fe7e14d72e50"
route = "apiker-demo.volted.co/*"
workers_dev = false
compatibility_date = "2021-10-12"
main = "./dist/shim.mjs"
compatibility_date = "2023-06-17"
# To use your own route, set workers_dev to false and fill out the following
#route = "your.domain.com/*"

[build]
command = "npm install && npm run build"

[[durable_objects.bindings]]
name = "Common"
class_name = "Common"

[[durable_objects.bindings]]
name = "Users"
class_name = "Users"

[[durable_objects.bindings]]
name = "EmailToUUID"
class_name = "EmailToUUID"

[[durable_objects.bindings]]
name = "RateLimit"
class_name = "RateLimit"

[[durable_objects.bindings]]
name = "Logs"
class_name = "Logs"

[[durable_objects.bindings]]
name = "Bans"
class_name = "Bans"

[[durable_objects.bindings]]
name = "CounterUser"
class_name = "CounterUser"

[[migrations]]
tag = "33b309"
new_classes = [ "Common", "Users", "EmailToUUID" ]

[[migrations]]
tag = "c124d4"
new_classes = [ "RateLimit", "Logs", "Bans" ]

[[migrations]]
tag = "6e8540"
new_classes = [ "CounterUser" ]
Loading

0 comments on commit 5baa4ce

Please sign in to comment.