Skip to content

Commit 2dc0dbd

Browse files
committed
Add back dev and local docs
1 parent 07c1600 commit 2dc0dbd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/pages/docs-layout.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ export let loader = async ({ request, params }: Route.LoaderArgs) => {
2424
// the /:ref param should only be used for v6 docs
2525
if (params.ref) {
2626
// if the ref is not a valid semver, this is 404
27-
if (!semver.valid(params.ref)) {
27+
if (
28+
params.ref !== "local" &&
29+
params.ref !== "dev" &&
30+
!semver.valid(params.ref)
31+
) {
2832
throw new Response("Not Found", { status: 404 });
2933
}
3034

0 commit comments

Comments
 (0)