fixed authcontext for sign up, added 404 and middleware for prod readiness

This commit is contained in:
2025-12-12 11:10:49 -05:00
parent 777618f684
commit 1757aba3e7
6 changed files with 504 additions and 6 deletions
+11 -3
View File
@@ -403,9 +403,17 @@ export default function GunbuilderPage() {
Platform
<select
value={platform}
onChange={(e) =>
setPlatform(e.target.value as (typeof PLATFORMS)[number])
}
onChange={(e) => {
const next = e.target.value as (typeof PLATFORMS)[number];
setPlatform(next);
// Keep URL in sync so navigation + refresh preserve platform
const qp = new URLSearchParams(searchParams.toString());
qp.set("platform", next);
qp.delete("select");
router.replace(`/builder?${qp.toString()}`, { scroll: false });
}}
className="rounded-md border border-zinc-700 bg-zinc-900 px-2 py-1 text-xs text-zinc-100 focus:outline-none focus:ring-1 focus:ring-amber-400"
>
{PLATFORMS.map((p) => (