🎥 Make videos programmatically with React
`@remotion/gif`: Fix staticFile + SSR
Jonny Burger7ed2aad1e690
diff --git a/packages/gif/src/resolve-gif-source.ts b/packages/gif/src/resolve-gif-source.tsindex 4e90306345..37886fed93 100644--- a/packages/gif/src/resolve-gif-source.ts+++ b/packages/gif/src/resolve-gif-source.ts@@ -1,4 +1,7 @@export const resolveGifSource = (src: string): string => {- return new URL(src, typeof window === 'undefined' ? undefined : window.origin)- .href;+ if (typeof window === 'undefined') {+ return src;+ }++ return new URL(src, window.origin).href;};diff --git a/packages/player-example/next-env.d.ts b/packages/player-example/next-env.d.tsindex a4a7b3f5cf..52e831b434 100644--- a/packages/player-example/next-env.d.ts+++ b/packages/player-example/next-env.d.ts@@ -2,4 +2,4 @@/// <reference types="next/image-types/global" />// NOTE: This file should not be edited-// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.+// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.diff --git a/packages/player-example/tsconfig.json b/packages/player-example/tsconfig.jsonindex bad3396fa9..5849c0aff5 100644--- a/packages/player-example/tsconfig.json+++ b/packages/player-example/tsconfig.json@@ -1,32 +1,40 @@{- "include": ["./src/**/*"],- "compilerOptions": {- "strict": true,- "esModuleInterop": true,- "lib": ["dom", "es2015"],- "jsx": "preserve",- "target": "es5",- "allowJs": true,- "skipLibCheck": true,- "allowSyntheticDefaultImports": true,- "forceConsistentCasingInFileNames": true,- "noFallthroughCasesInSwitch": true,- "module": "esnext",- "moduleResolution": "node",- "resolveJsonModule": true,- "isolatedModules": true,- "noEmit": true- },- "references": [- {- "path": "../player"- },- {- "path": "../google-fonts"- },- {- "path": "../core"- }- ],- "exclude": ["node_modules"]+ "include": [+ "./src/**/*"+ ],+ "compilerOptions": {+ "strict": true,+ "esModuleInterop": true,+ "lib": [+ "dom",+ "es2015"+ ],+ "jsx": "preserve",+ "target": "es5",+ "allowJs": true,+ "skipLibCheck": true,+ "allowSyntheticDefaultImports": true,+ "forceConsistentCasingInFileNames": true,+ "noFallthroughCasesInSwitch": true,+ "module": "esnext",+ "moduleResolution": "node",+ "resolveJsonModule": true,+ "isolatedModules": true,+ "noEmit": true,+ "incremental": true+ },+ "references": [+ {+ "path": "../player"+ },+ {+ "path": "../google-fonts"+ },+ {+ "path": "../core"+ }+ ],+ "exclude": [+ "node_modules"+ ]}