Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
NEXT_PUBLIC_TINA_CLIENT_ID=***
TINA_TOKEN=***

# This is set by default CI with Netlify/Vercel/Github, but can be overriden
# This is set by default CI with Github, but can be overridden
NEXT_PUBLIC_TINA_BRANCH=***
# To see the preview functionality
VERCEL_ENV=preview

LOCAL_CONTENT_RELATIVE_PATH=../../SSW.Rules.Content

Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-archived-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const projectRoot = path.resolve(__dirname, "..");
const outputPath = path.join(projectRoot, "archived-rules.json");

const getBranch = () =>
process.env.NEXT_PUBLIC_TINA_BRANCH || process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF || process.env.HEAD || "main";
process.env.NEXT_PUBLIC_TINA_BRANCH || process.env.HEAD || "main";

const getCandidateUrls = () => {
if (process.env.NODE_ENV === "development") {
Expand Down
1 change: 0 additions & 1 deletion utils/tina/get-tina-endpoint.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export const getTinaEndpoint = (activeBranch?: string): string | null => {
const branch =
activeBranch ||
process.env.NEXT_PUBLIC_TINA_BRANCH || // custom branch env override
process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF || // Vercel branch env
process.env.HEAD; // Netlify branch env

if (!clientId || !branch) {
Expand Down
Loading