fix: vercel deployments should now work

This commit is contained in:
Corbin Crutchley
2023-11-12 01:24:41 -07:00
parent 4c55c44175
commit 784f45ccbb

View File

@@ -92,7 +92,8 @@ export function createRehypePlugins(config: MarkdownConfig): RehypePlugin[] {
}
const q = iFrameUrl.search;
const currentBranch = branch.sync();
const currentBranch =
process.env.VERCEL_GIT_COMMIT_REF ?? branch.sync();
const repoPath = siteMetadata.repoPath;
const provider = `stackblitz.com/github`;
return `