Skip to content

🎥 Make videos programmatically with React

future proof docusaurus

Jonny Burger2dc791500288
diff --git a/packages/docs/components/PrereleaseVersion.tsx b/packages/docs/components/PrereleaseVersion.tsx
index 7c87abb070..d68d72b24a 100644
--- a/packages/docs/components/PrereleaseVersion.tsx
+++ b/packages/docs/components/PrereleaseVersion.tsx
@@ -7,6 +7,8 @@ export const Prerelease: React.FC<{
}> = ({ onlySnippet }) => {
const version =
typeof URLSearchParams === "undefined"
+ ? FALLBACK_VERSION
+ : typeof window === "undefined"
? FALLBACK_VERSION
: new URLSearchParams(window.location.search).get("version") ??
FALLBACK_VERSION;
diff --git a/packages/docs/docusaurus.config.js b/packages/docs/docusaurus.config.js
index 4f600ab5ad..703d448477 100644
--- a/packages/docs/docusaurus.config.js
+++ b/packages/docs/docusaurus.config.js
@@ -10,7 +10,8 @@ module.exports = {
projectName: "remotion", // Usually your repo name.
themeConfig: {
algolia: {
- apiKey: "f63f08c037745da5269569bfbd91cd59",
+ appId: "PLSDUOL1CA",
+ apiKey: "3e42dbd4f895fe93ff5cf40d860c4a85",
indexName: "remotion",
contextualSearch: false,
},