chore: Export provisionFirstCollection, skip migration check when cloud hosted (#14116)

This commit is contained in:
Tom Moor authored and GitHub committed 2026-10-17 11:01:55 -04:00
1 parent 77e0fb1e51
commit e51b9f3151
2 files changed
+15 -1

No files matched your search

+10 -1
View File
@@ -247,7 +247,16 @@ async function accountProvisioner(
};
}
async function provisionFirstCollection(
/**
* Creates the default "Welcome" collection and onboarding documents for a
* newly created team.
*
* @param ctx the request context.
* @param team the team to provision the collection for.
* @param user the user that will be recorded as the creator.
* @returns a promise that resolves when the collection has been created.
*/
export async function provisionFirstCollection(
ctx: APIContext,
team: Team,
user: User
+5
View File
@@ -73,6 +73,11 @@ export function configureChildHeapLimit(processCount: number) {
* @returns a promise that resolves when the checks have completed successfully.
*/
export function checkPendingMigrations(): Promise<void> {
// Migrations are run as a separate release step in the hosted service.
if (env.isCloudHosted) {
return Promise.resolve();
}
return new Promise((resolve) => {
const child = fork(
path.join(__dirname, "..", "scripts", "checkMigrations.js"),