Skip to content

Commit 879e748

Browse files
committed
build: try some vercel deployment fixes
1 parent 84b0227 commit 879e748

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

apps/docs/scripts/createEnv.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const branchName =
88
execSync("git branch --show-current").toString().trim();
99
const commit =
1010
process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA ||
11+
process.env.VERCEL_GIT_COMMIT_SHA ||
1112
process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF ||
1213
process.argv.includes("--dev")
1314
? branchName

apps/docs/src/app/(main)/(markdown)/blog/page.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ export const metadata: Metadata = {
2424
keywords: ["blog", "release notes"],
2525
};
2626

27+
// TODO: See if there is another way to handle this. vercel does not keep the files
28+
// so this fails without the run-time bundling. this does make it so this page is
29+
// forced to use system theme and none of the user preferences.
30+
export const dynamic = "force-static";
31+
2732
const DATE_FORMATTER = Intl.DateTimeFormat("en-US", {
2833
weekday: "short",
2934
month: "short",

0 commit comments

Comments
 (0)