Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

Fix CI build on fork pull requests (#281)

KapishDima412c601d55e2
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d029af3c..46ad168c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -35,4 +35,4 @@ jobs:
- run: bun install --frozen-lockfile
- run: bun run build
env:
- SHOWCASES_API_URL: ${{ vars.SHOWCASES_API_URL }}
+ SHOWCASES_API_URL: ${{ vars.SHOWCASES_API_URL || 'https://manager.remocn.dev' }}
diff --git a/app/docs/layout.tsx b/app/docs/layout.tsx
index e8eb5c61..ab800c64 100644
--- a/app/docs/layout.tsx
+++ b/app/docs/layout.tsx
@@ -5,9 +5,9 @@ import { DocsShell } from "@/components/docs/docs-shell";
import { DocsTabsBar } from "@/components/docs/docs-tabs-bar";
import { splitDocsTree } from "@/lib/docs-tabs";
import { withNewBadges } from "@/lib/with-new-badges";
+import remocnRegistry from "@/registry/remocn/registry.json";
import iconsRegistry from "@/registry/remocn-icons/registry.json";
import uiRegistry from "@/registry/remocn-ui/registry.json";
-import remocnRegistry from "@/registry/remocn/registry.json";
import { source } from "@/source";
const componentCount = [remocnRegistry, uiRegistry, iconsRegistry]
diff --git a/app/lab/header/header-lab.tsx b/app/lab/header/header-lab.tsx
index c54fab3c..dfb9568b 100644
--- a/app/lab/header/header-lab.tsx
+++ b/app/lab/header/header-lab.tsx
@@ -232,10 +232,7 @@ function LabHeader({ cfg, active }: { cfg: LabConfig; active: boolean }) {
);
return (
- <header
- className="fixed top-0 left-0 z-40"
- style={{ right: PANEL_WIDTH }}
- >
+ <header className="fixed top-0 left-0 z-40" style={{ right: PANEL_WIDTH }}>
{island ? (
<div
className="section"
@@ -387,11 +384,18 @@ export function HeaderLab() {
</div>
</div>
- <label className="mt-4 flex h-9 items-center justify-between rounded-xl control-surface px-3 text-sm">
+ <label
+ htmlFor="force-scrolled"
+ className="mt-4 flex h-9 items-center justify-between rounded-xl control-surface px-3 text-sm"
+ >
<span className="font-medium text-muted-foreground">
Force scrolled state
</span>
- <Switch checked={forceScrolled} onCheckedChange={setForceScrolled} />
+ <Switch
+ id="force-scrolled"
+ checked={forceScrolled}
+ onCheckedChange={setForceScrolled}
+ />
</label>
<div className="mt-3 [&>div]:grid-cols-1!">
diff --git a/components/docs/docs-shell.tsx b/components/docs/docs-shell.tsx
index e6972fc0..ce33ac9a 100644
--- a/components/docs/docs-shell.tsx
+++ b/components/docs/docs-shell.tsx
@@ -57,9 +57,16 @@ export function DocsShell({
children: ReactNode;
}) {
const searchTriggerFull = useMemo(() => {
- function SearchTriggerFull({ hideIfDisabled }: { hideIfDisabled?: boolean }) {
+ function SearchTriggerFull({
+ hideIfDisabled,
+ }: {
+ hideIfDisabled?: boolean;
+ }) {
return (
- <DocsSearchTrigger count={componentCount} hideIfDisabled={hideIfDisabled} />
+ <DocsSearchTrigger
+ count={componentCount}
+ hideIfDisabled={hideIfDisabled}
+ />
);
}
return SearchTriggerFull;