-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
infer chained pipeline responses (#355)
* Infer chained response types in Pipeline * test: fix build and test case * test: update deps * ci: set environment for cf workers * refactor(tests.yaml): remove redundant job name 'add environment' fix(tests.yaml): fix indentation of 'run' command in 'Add environment' job * ci(tests.yaml): add push event to trigger workflow on main branch --------- Co-authored-by: Sam Martin <[email protected]>
- Loading branch information
Showing
11 changed files
with
64 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
import { NextApiRequest, NextApiResponse } from "next"; | ||
import { Redis } from "@upstash/redis"; | ||
import { NextRequest, NextResponse } from "next/server"; | ||
|
||
export default (_req: NextApiRequest, res: NextApiResponse) => { | ||
res.status(200); | ||
res.send("OK"); | ||
export const config = { | ||
runtime: "edge", | ||
}; | ||
|
||
const redis = Redis.fromEnv(); | ||
|
||
export default async (_req: NextRequest) => { | ||
const counter = await redis.incr("vercel_edge_counter"); | ||
return NextResponse.json({ counter }); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export const VERSION = "development" | ||
export const VERSION = "v0.0.0"; |