Skip to content

Commit c9d40fb

Browse files
committed
update to new workspace API keys setup
1 parent 2510974 commit c9d40fb

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.env.example

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Get your own Dub API key: https://dub.co/docs/api-reference/tokens
2+
DUB_API_KEY=
3+
14
# GitHub
25
AUTH_GITHUB_ID=
36
AUTH_GITHUB_SECRET=

lib/dub.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ import { Link } from "@prisma/client";
44
import { Dub } from "dub";
55
import { getUrlWithRef } from "./utils";
66

7-
export const dub = new Dub({
8-
workspaceId: "ws_clv9jxuxp0006gpq847kwrcwj",
9-
});
7+
export const dub = new Dub();
108

119
export async function shortenAndCreateLink({
1210
url,

0 commit comments

Comments
 (0)