improvement(chat): deployed chat no longer uses subdomains, uses sim.ai/chat/[identifier] (#1474)

* improvement(chat): deployed chat no longer uses subdomains, uses sim.ai/chat/[identifier]

* ui fix

* added back validate route, remove backwards compatibility for subdomain redirects

* cleanup

* cleanup

* add chat page to conditional theme layout, and remove custom chat css

* consolidate theme providers

* ack pr commnets

---------

Co-authored-by: waleed <waleed>
This commit is contained in:
Waleed
2025-09-27 17:32:10 -07:00
committed by GitHub
co-authored by waleed
parent 39356f3d74
commit dd1985c99c
36 changed files with 7302 additions and 934 deletions
@@ -0,0 +1,3 @@
ALTER TABLE "chat" RENAME COLUMN "subdomain" TO "identifier";--> statement-breakpoint
DROP INDEX "subdomain_idx";--> statement-breakpoint
CREATE UNIQUE INDEX "identifier_idx" ON "chat" USING btree ("identifier");
File diff suppressed because it is too large Load Diff
@@ -652,6 +652,13 @@
"when": 1758751182653,
"tag": "0093_medical_sentinel",
"breakpoints": true
},
{
"idx": 94,
"version": "7",
"when": 1758998206326,
"tag": "0094_perpetual_the_watchers",
"breakpoints": true
}
]
}
+3 -3
View File
@@ -633,7 +633,7 @@ export const chat = pgTable(
userId: text('user_id')
.notNull()
.references(() => user.id, { onDelete: 'cascade' }),
subdomain: text('subdomain').notNull(),
identifier: text('identifier').notNull(),
title: text('title').notNull(),
description: text('description'),
isActive: boolean('is_active').notNull().default(true),
@@ -652,8 +652,8 @@ export const chat = pgTable(
},
(table) => {
return {
// Ensure subdomains are unique
subdomainIdx: uniqueIndex('subdomain_idx').on(table.subdomain),
// Ensure identifiers are unique
identifierIdx: uniqueIndex('identifier_idx').on(table.identifier),
}
}
)