mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
Update apps/backend/prisma/seed.ts
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
0bcafcd3b8
commit
15f73de10b
@ -73,6 +73,7 @@ async function seed() {
|
||||
...(dashboardDomain && new URL(dashboardDomain).hostname !== 'localhost' ? [{ domain: dashboardDomain, handler_path: '/handler' }] : []),
|
||||
...Object.values(internalTenancy.config.domains.trustedDomains)
|
||||
.filter((d) => d.baseUrl !== dashboardDomain && d.baseUrl)
|
||||
.map((d) => ({ domain: d.baseUrl, handler_path: d.handlerPath })),
|
||||
.map((d) => ({ domain: d.baseUrl || throwErr('Domain base URL is required'), handler_path: d.handlerPath })),
|
||||
]
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user