Add CYD browser flasher with Next.js, i18n, and Web Serial install.
Replace the starter app with a public/local flasher that discovers sibling firmwares, supports en/zh, and documents HTTPS deploy. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
17
app/sitemap.ts
Normal file
17
app/sitemap.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import type { MetadataRoute } from "next";
|
||||
import { routing } from "@/i18n/routing";
|
||||
|
||||
export default function sitemap(): MetadataRoute.Sitemap {
|
||||
const base = process.env.NEXT_PUBLIC_SITE_URL || "http://localhost:3000";
|
||||
return routing.locales.map((locale) => ({
|
||||
url: `${base}/${locale}`,
|
||||
lastModified: new Date(),
|
||||
changeFrequency: "weekly",
|
||||
priority: 1,
|
||||
alternates: {
|
||||
languages: Object.fromEntries(
|
||||
routing.locales.map((l) => [l, `${base}/${l}`])
|
||||
),
|
||||
},
|
||||
}));
|
||||
}
|
||||
Reference in New Issue
Block a user