From f59d0ac323c9e08fa214dada21acf6fb771021d1 Mon Sep 17 00:00:00 2001 From: peeech Date: Thu, 29 Feb 2024 05:03:27 +0100 Subject: [PATCH] bump wrangler to v3, clean up wrangler settings --- .github/workflows/deploy-to-alphaNet.yml | 5 ++--- .github/workflows/deploy-to-devNet.yml | 5 ++--- server/wrangler.toml | 3 +-- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy-to-alphaNet.yml b/.github/workflows/deploy-to-alphaNet.yml index 62781d1..a88e83b 100644 --- a/.github/workflows/deploy-to-alphaNet.yml +++ b/.github/workflows/deploy-to-alphaNet.yml @@ -8,13 +8,12 @@ on: jobs: deploy: runs-on: ubuntu-latest - name: Deploy + name: Deploy server steps: - uses: actions/checkout@v2 - name: Publish to alphaNet - uses: cloudflare/wrangler-action@2.0.0 + uses: cloudflare/wrangler-action@3 with: apiToken: ${{ secrets.CF_API_TOKEN }} - preCommands: 'yarn add @cloudflare/kv-asset-handler' workingDirectory: 'server' environment: alphanet diff --git a/.github/workflows/deploy-to-devNet.yml b/.github/workflows/deploy-to-devNet.yml index e3676da..ce646b0 100644 --- a/.github/workflows/deploy-to-devNet.yml +++ b/.github/workflows/deploy-to-devNet.yml @@ -8,12 +8,11 @@ on: jobs: deploy: runs-on: ubuntu-latest - name: Deploy + name: Deploy server steps: - uses: actions/checkout@v2 - name: Publish to devNet - uses: cloudflare/wrangler-action@2.0.0 + uses: cloudflare/wrangler-action@3 with: apiToken: ${{ secrets.CF_API_TOKEN }} - preCommands: 'yarn add @cloudflare/kv-asset-handler' workingDirectory: 'server' diff --git a/server/wrangler.toml b/server/wrangler.toml index d72fa1e..72a4fd7 100644 --- a/server/wrangler.toml +++ b/server/wrangler.toml @@ -2,6 +2,7 @@ name = "devnet-auth-server" account_id = "18ff2b4e6205b938652998cfca0d8cff" route = "devnet-auth-server.holo.host/*" compatibility_date = "2024-02-19" +main = "dist/main.js" kv_namespaces = [ { binding = "SETTINGS", id = "5181f479e6d84fc9835c5195b08a7029"} ] @@ -15,5 +16,3 @@ route = "auth-server.holo.host/*" kv_namespaces = [ { binding = "SETTINGS", id = "56ecfe1cf54d43839e2c867798e5003b"} ] - -main = "dist/main.js"