Skip to content

armgit / AiSOC

Public Imported from GitHub
0

Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.

fix(qa): ISSUE-003 — 308 /signup to /dashboard (anon demo)

Beenu Aroraffd210399f3e
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index 2d2f887d8..f31fb0e92 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -71,6 +71,32 @@ const nextConfig = {
NEXT_PUBLIC_HONEYTOKENS_URL: process.env.NEXT_PUBLIC_HONEYTOKENS_URL || '',
NEXT_PUBLIC_OSQUERY_TLS_URL: process.env.NEXT_PUBLIC_OSQUERY_TLS_URL || '',
},
+ // ─── Permanent URL redirects (browser-visible) ───────────────────────────
+ //
+ // These run *before* rewrites and emit real 308 responses (so search
+ // engines update their index, cached links retain SEO value, and
+ // share-card crawlers follow the redirect). Use this surface only for
+ // *retired* public URLs that still get external traffic — every other
+ // route should live under apps/web/src/app/.
+ async redirects() {
+ return [
+ // /signup is intentionally not a page. AiSOC is MIT-licensed and
+ // self-hostable, so the public entry point is the interactive
+ // demo at /dashboard (anonymous, demo-tenant, no account needed).
+ // The /signup URL still appears in cached search results, old
+ // blog posts, and a few external decks, so we 308 it to the
+ // intended destination instead of letting Next.js render the
+ // bare unbranded 404 page. The /waitlist surface is for the
+ // managed-instance invite-only beta — a different flow with its
+ // own page.
+ {
+ source: '/signup',
+ destination: '/dashboard',
+ permanent: true,
+ },
+ ];
+ },
+
// ─── Same-origin proxy rules ─────────────────────────────────────────────
//
// Order matters: more specific paths (contextual, realtime healthz) must
diff --git a/apps/web/src/app/sitemap.ts b/apps/web/src/app/sitemap.ts
index 8ce4d9e95..98f0fe432 100644
--- a/apps/web/src/app/sitemap.ts
+++ b/apps/web/src/app/sitemap.ts
@@ -22,9 +22,13 @@ export default function sitemap(): MetadataRoute.Sitemap {
"/copilot",
"/graph",
];
- // Note: AiSOC is open source and self-hosted — there is no `/signup` route.
- // Anonymous demo lands directly via `/` and the in-app demo button. The
- // hosted login at `/login` is the only auth entry point we ship.
+ // Note: AiSOC is open source and self-hosted — there is no `/signup`
+ // page. We do *not* list it here (don't ask search engines to crawl a
+ // route we redirect away), but we 308 `/signup` → `/dashboard` in
+ // apps/web/next.config.js so the public entry point (anonymous demo
+ // tenant) catches any stale external links. The hosted login at
+ // `/login` is the only auth entry point we ship; the `/waitlist`
+ // page is for the separate managed-instance invite-only beta.
const lowPriority = [
"/login",
"/detection",