fix(sso): add missing deps to db container for running script (#2746)

This commit is contained in:
Waleed
2026-01-09 09:42:13 -08:00
committed by GitHub
parent 13981549d1
commit 9502227fd4
4 changed files with 7 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
{
"lockfileVersion": 1,
"configVersion": 0,
"workspaces": {
"": {
"name": "simstudio",
@@ -249,6 +250,7 @@
"dependencies": {
"drizzle-orm": "^0.44.5",
"postgres": "^3.4.5",
"uuid": "^11.1.0",
"zod": "^3.24.2",
},
"devDependencies": {

View File

@@ -32,6 +32,9 @@ RUN addgroup -g 1001 -S nodejs && \
# Copy only the necessary files from deps (cached if dependencies don't change)
COPY --from=deps --chown=nextjs:nodejs /app/node_modules ./node_modules
# Copy root package.json for workspace resolution
COPY --chown=nextjs:nodejs package.json ./package.json
# Copy package configuration files (needed for migrations)
COPY --chown=nextjs:nodejs packages/db/drizzle.config.ts ./packages/db/drizzle.config.ts

View File

@@ -27,6 +27,7 @@
"dependencies": {
"drizzle-orm": "^0.44.5",
"postgres": "^3.4.5",
"uuid": "^11.1.0",
"zod": "^3.24.2"
},
"devDependencies": {

View File

@@ -7,7 +7,7 @@
* SSO provider records into the database, following the exact same logic
* as Better Auth's registerSSOProvider endpoint.
*
* Usage: bun run packages/db/register-sso-provider.ts
* Usage: bun run packages/db/scripts/register-sso-provider.ts
*
* Required Environment Variables:
* SSO_ENABLED=true