mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
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:
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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),
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user