Skip to content

Commit ae7dee9

Browse files
Merge branch 'main' into dependabot/npm_and_yarn/eslint-config-next-15.1.4
2 parents 66921eb + b511a69 commit ae7dee9

File tree

299 files changed

+4689
-3416
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

299 files changed

+4689
-3416
lines changed

.changeset/blue-ears-sit.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/breezy-items-relate.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/cool-pianos-walk.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/green-tips-beam.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@thirdweb-dev/service-utils": minor
3+
---
4+
5+
track usage call once per ratelimit window

.changeset/happy-carrots-appear.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

.changeset/hip-llamas-wash.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/six-snails-reflect.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

apps/dashboard/next-env.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
/// <reference types="next/navigation-types/compat/navigation" />
43

54
// NOTE: This file should not be edited
65
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

apps/dashboard/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@
7070
"lucide-react": "0.468.0",
7171
"next": "15.1.3",
7272
"next-plausible": "^3.12.4",
73-
"next-seo": "^6.5.0",
7473
"next-themes": "^0.4.4",
7574
"nextjs-toploader": "^1.6.12",
7675
"openapi-types": "^12.1.3",
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
"use server";
2+
3+
type EmailSignupParams = {
4+
email: string;
5+
send_welcome_email?: boolean;
6+
};
7+
8+
export async function emailSignup(payLoad: EmailSignupParams) {
9+
const response = await fetch(
10+
"https://api.beehiiv.com/v2/publications/pub_9f54090a-6d14-406b-adfd-dbb30574f664/subscriptions",
11+
{
12+
headers: {
13+
"Content-Type": "application/json",
14+
Authorization: `Bearer ${process.env.BEEHIIV_API_KEY}`,
15+
},
16+
method: "POST",
17+
body: JSON.stringify({
18+
email: payLoad.email,
19+
send_welcome_email: payLoad.send_welcome_email || false,
20+
utm_source: "thirdweb.com",
21+
}),
22+
},
23+
);
24+
25+
return {
26+
status: response.status,
27+
};
28+
}

0 commit comments

Comments
 (0)