Skip to content

Commit a7e5395

Browse files
authored
Merge pull request #64 from techulus/develop
Update env variable
2 parents 947cd2f + bd9cd0f commit a7e5395

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

apps/web/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ OPENAI_API_KEY=
2626
# Custom domains
2727
VERCEL_AUTH_TOKEN=
2828
VERCEL_TEAM_ID=
29-
VERCEL_PROJECT_ID=
29+
VERCEL_PAGES_PROJECT_ID=
3030
3131
# Postmark Emails
3232
POSTMARK_SERVER_KEY=

apps/web/pages/api/pages/settings/add-domain.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ async function addDomain(req: NextApiRequest, res: NextApiResponse) {
1818
console.log("addDomain", user?.id, `domain: ${domain}`);
1919

2020
const response = await fetch(
21-
`https://api.vercel.com/v8/projects/${process.env.VERCEL_PROJECT_ID}/domains?teamId=${process.env.VERCEL_TEAM_ID}`,
21+
`https://api.vercel.com/v8/projects/${process.env.VERCEL_PAGES_PROJECT_ID}/domains?teamId=${process.env.VERCEL_TEAM_ID}`,
2222
{
2323
body: `{\n "name": "${domain}"\n}`,
2424
headers: {

apps/web/pages/api/pages/settings/remove-domain.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ async function removeDomain(req: NextApiRequest, res: NextApiResponse) {
99
console.log("removeDomain", user?.id, `domain: ${domain}`);
1010

1111
const response = await fetch(
12-
`https://api.vercel.com/v8/projects/${process.env.VERCEL_PROJECT_ID}/domains/${domain}?teamId=${process.env.VERCEL_TEAM_ID}`,
12+
`https://api.vercel.com/v8/projects/${process.env.VERCEL_PAGES_PROJECT_ID}/domains/${domain}?teamId=${process.env.VERCEL_TEAM_ID}`,
1313
{
1414
headers: {
1515
Authorization: `Bearer ${process.env.VERCEL_AUTH_TOKEN}`,

0 commit comments

Comments
 (0)