Add web app manifest, bump version to 0.1.1
manifest.ts uses icon.svg and the app's palette for background/theme color. Excluded /manifest.webmanifest from the auth gate in proxy.ts, same as icon.svg/favicon.ico - it must be publicly fetchable regardless of login state. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W8WkFF5ppURBAB918593Eb
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import type { MetadataRoute } from "next";
|
||||
|
||||
export default function manifest(): MetadataRoute.Manifest {
|
||||
return {
|
||||
name: "SEXY",
|
||||
short_name: "SEXY",
|
||||
description: "Bluetooth toy control console",
|
||||
start_url: "/",
|
||||
display: "standalone",
|
||||
background_color: "#15131f",
|
||||
theme_color: "#15131f",
|
||||
icons: [
|
||||
{
|
||||
src: "/icon.svg",
|
||||
sizes: "any",
|
||||
type: "image/svg+xml",
|
||||
},
|
||||
],
|
||||
};
|
||||
}
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "sexy",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.1",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
|
||||
@@ -22,5 +22,7 @@ export default async function proxy(req: NextRequest) {
|
||||
}
|
||||
|
||||
export const config = {
|
||||
matcher: ["/((?!_next/static|_next/image|favicon.ico|icon.svg|login|api/auth/login|api/health).*)"],
|
||||
matcher: [
|
||||
"/((?!_next/static|_next/image|favicon.ico|icon.svg|manifest.webmanifest|login|api/auth/login|api/health).*)",
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user