Skip to content

Commit 9b7a1c2

Browse files
committed
chore: remove dependabot and support Cloudflare Tina branch env
1 parent 57da25c commit 9b7a1c2

3 files changed

Lines changed: 2 additions & 39 deletions

File tree

.github/dependabot.yml

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

src/utils/get-tina-endpoint.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const getTinaEndpoint = (): string | null => {
99
const clientId = process.env.NEXT_PUBLIC_TINA_CLIENT_ID;
1010
const branch =
1111
process.env.NEXT_PUBLIC_TINA_BRANCH || // custom branch env override
12+
process.env.CF_PAGES_BRANCH || // Cloudflare Pages branch env
1213
process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF || // Vercel branch env
1314
process.env.HEAD; // Netlify branch env
1415

tina/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export const config = defineConfig({
77
clientId: process.env.NEXT_PUBLIC_TINA_CLIENT_ID,
88
branch:
99
process.env.NEXT_PUBLIC_TINA_BRANCH || // custom branch env override
10+
process.env.CF_PAGES_BRANCH || // Cloudflare Pages branch env
1011
process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF || // Vercel branch env
1112
process.env.HEAD, // Netlify branch env
1213
token: process.env.TINA_TOKEN,

0 commit comments

Comments
 (0)