fix: randomstring dep does not work in browser with rolldown-vite (#9624)

* fix: randomstring dep does not work in browser with rolldown-vite

* fix: Last usage of randomstring, docs

* feedback
This commit is contained in:
Tom Moor
2025-07-13 09:33:16 -04:00
committed by GitHub
parent 40e6a87d15
commit 772eb2f1d4
15 changed files with 290 additions and 119 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import { Context, Next } from "koa";
import Router from "koa-router";
import randomstring from "randomstring";
import { randomString } from "@shared/random";
import userInviter, { Invite } from "@server/commands/userInviter";
import env from "@server/env";
import Logger from "@server/logging/Logger";
@@ -33,7 +33,7 @@ router.post(
const invites = Array(Math.min(count, 100))
.fill(0)
.map(() => {
const rando = randomstring.generate(10);
const rando = randomString(10);
return {
email: `${rando}@example.com`,