Skip to content

🎥 Make videos programmatically with React

Fix PWA icons

Jonny Burger710b671aa8a3
diff --git a/packages/convert/app/root.tsx b/packages/convert/app/root.tsx
index 8d6096920a..3f8f5ceb63 100644
--- a/packages/convert/app/root.tsx
+++ b/packages/convert/app/root.tsx
@@ -10,8 +10,11 @@ export function Layout({children}: {readonly children: React.ReactNode}) {
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Remotion Convert</title>
<meta name="description" content="Remotion Convert" />
- <link rel="icon" href="/convert/pwa-icon-192.png" />
- <link rel="manifest" href="/convert/manifest.json" />
+ <link rel="icon" href={`${import.meta.env.BASE_URL}pwa-icon-192.png`} />
+ <link
+ rel="manifest"
+ href={`${import.meta.env.BASE_URL}manifest.json`}
+ />
<Links />
</head>
<body>
diff --git a/packages/convert/app/seo.ts b/packages/convert/app/seo.ts
index 2131e79eef..d6ba975ab4 100644
--- a/packages/convert/app/seo.ts
+++ b/packages/convert/app/seo.ts
@@ -11,7 +11,7 @@ export const outputContainers = getAvailableContainers();
export const parseConvertRouteAction = (action: string) => {
const split = action.split('-to-');
if (split.length !== 2) {
- throw new Error('Invalid action');
+ throw new Error('Invalid action: ' + action);
}
if (split[0] === split[1]) {
diff --git a/packages/convert/public/manifest.json b/packages/convert/public/manifest.json
index 52f646703a..be7a6d289c 100644
--- a/packages/convert/public/manifest.json
+++ b/packages/convert/public/manifest.json
@@ -1,28 +1,28 @@
{
- "name": "Remotion Convert",
- "id": "com.remotion.convert",
- "short_name": "Remotion Convert",
- "description": "Convert videos using WebCodecs",
- "start_url": "/convert",
- "display": "standalone",
- "background_color": "#ffffff",
- "theme_color": "#0B84F3",
- "icons": [
- {
- "src": "/convert/pwa-icon-192.png",
- "sizes": "192x192",
- "type": "image/png"
- },
- {
- "src": "/convert/pwa-icon-512.png",
- "sizes": "512x512",
- "type": "image/png"
- },
- {
- "src": "/convert/pwa-icon-512.png",
- "sizes": "512x512",
- "type": "image/png",
- "purpose": "maskable"
- }
- ]
+ "name": "Remotion Convert",
+ "id": "com.remotion.convert",
+ "short_name": "Remotion Convert",
+ "description": "Convert videos using WebCodecs",
+ "start_url": "/convert",
+ "display": "standalone",
+ "background_color": "#ffffff",
+ "theme_color": "#0B84F3",
+ "icons": [
+ {
+ "src": "/pwa-icon-192.png",
+ "sizes": "192x192",
+ "type": "image/png"
+ },
+ {
+ "src": "/pwa-icon-512.png",
+ "sizes": "512x512",
+ "type": "image/png"
+ },
+ {
+ "src": "/pwa-icon-512.png",
+ "sizes": "512x512",
+ "type": "image/png",
+ "purpose": "maskable"
+ }
+ ]
}
diff --git a/packages/docs/public/pwa-icon-192.png b/packages/docs/public/pwa-icon-192.png
new file mode 100644
index 0000000000..f925e335b0
Binary files /dev/null and b/packages/docs/public/pwa-icon-192.png differ
diff --git a/packages/docs/public/pwa-icon-512.png b/packages/docs/public/pwa-icon-512.png
new file mode 100644
index 0000000000..11a6a15be1
Binary files /dev/null and b/packages/docs/public/pwa-icon-512.png differ