Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Make edge workflows work properly #925

Merged
merged 8 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test-cf-worker-hono.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ jobs:
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
APP_URL: ${{ secrets.CLOUDFLARE_HONO_APP_URL }}
CLOUDFLARE_PROJECT_NAME: ${{ secrets.CLOUDFLARE_HONO_PROJECT_NAME }}
APP_URL: "https://hono.rishabh-77b.workers.dev"
CLOUDFLARE_PROJECT_NAME: "hono"
TEST_DEPLOYED_VERSION: true
defaults:
run:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-cf-worker-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ jobs:
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
APP_URL: ${{ secrets.CLOUDFLARE_APP_URL }}
CLOUDFLARE_PROJECT_NAME: ${{ secrets.CLOUDFLARE_PROJECT_NAME }}
APP_URL: "supertokens-node-b95.pages.dev"
CLOUDFLARE_PROJECT_NAME: "supertokens-node-pr-check-for-edge-function-compat"
TEST_DEPLOYED_VERSION: true
defaults:
run:
Expand Down
34 changes: 0 additions & 34 deletions .github/workflows/test-edge-function.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,10 @@ app.get("/sessioninfo", (c) => {
});
});

app.get("/", (c) => {
return c.json({
"message": "Hello from Supertokens"
})
})

export default app;
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "",
"main": "index.js",
"scripts": {
"start": "wrangler dev index.ts --port 3001"
"start": "wrangler dev index.ts --port 3000"
},
"dependencies": {
"hono": "^4.3.9",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const assert = require("assert");
// Run the tests in a DOM environment.
require("jsdom-global")();

const APP_URL = process.env.APP_URL || "http://localhost:8787";
const APP_URL = process.env.APP_URL || "http://localhost:3000";

describe("Auth API Tests", () => {
const signupBody = {
Expand Down
Loading