Skip to content

Commit 9041cbd

Browse files
committed
remove branch
1 parent 1f428dd commit 9041cbd

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

app/routes/MdxRoute.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ let default = () => {
320320
}
321321
})
322322
)}
323-
editHref={`https://github.com/rescript-lang/rescript-lang.org/blob/${Env.github_branch}${loaderData.filePath->Option.getOrThrow}`}
323+
editHref={`https://github.com/rescript-lang/rescript-lang.org/blob/master${loaderData.filePath->Option.getOrThrow}`}
324324
>
325325
<div className="markdown-body"> {component()} </div>
326326
</DocsLayout>

src/bindings/Env.res

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@ external dev: bool = "import.meta.env.DEV"
44
// Cloudflare deployment URL
55
external deployment_url: option<string> = "import.meta.env.DEPLOYMENT_URL"
66

7-
// The current github branch being used for cloudflare pages
8-
external github_branch: option<string> = "import.meta.env.CF_PAGES_BRANCH"
9-
let github_branch = switch github_branch {
10-
| Some(branch) => branch
11-
| None => "master"
12-
}
13-
147
// the root url of the site, e.g. "https://rescript-lang.org/" or "http://localhost:5173/"
158
let root_url = switch deployment_url {
169
| Some(url) => url

0 commit comments

Comments
 (0)