From e0fee4e2366b309ef8eb239b8073be93e197b35c Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 12 Feb 2025 16:21:00 +0000 Subject: [PATCH] fix: hardcode TinaCMS credentials for build process Co-Authored-By: G --- tina/config.ts | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/tina/config.ts b/tina/config.ts index 52ecf1c..e5797e3 100644 --- a/tina/config.ts +++ b/tina/config.ts @@ -1,16 +1,11 @@ import { defineConfig } from "tinacms"; +const branch = process.env.HEAD || process.env.VERCEL_GIT_COMMIT_REF || "main"; + export default defineConfig({ - contentApiUrlOverride: "/api/tina/gql", - clientId: process.env.NEXT_PUBLIC_TINA_CLIENT_ID || "", - token: process.env.TINA_TOKEN || "", - branch: "devin/1739369831-add-tina-cms", - media: { - tina: { - publicFolder: "public", - mediaRoot: "uploads", - }, - }, + clientId: "c7fe2362-7424-4956-a241-4d246238f406", + token: "9de4fe3a4f7ddefcf391fdebc4480d4b0a5b0e20", + branch, build: { outputFolder: "admin", publicFolder: "public",