chore: fix ci problem

This commit is contained in:
moonrailgun 2024-09-20 00:01:30 +08:00
parent d0afdf5c91
commit 63484d0db5
2 changed files with 6 additions and 5 deletions

View File

@ -5,7 +5,6 @@ import swaggerUI from 'swagger-ui-express';
import passport from 'passport';
import morgan from 'morgan';
import { websiteRouter } from './router/website.js';
import { workspaceRouter } from './router/workspace.js';
import { telemetryRouter } from './router/telemetry.js';
import {
trpcExpressMiddleware,

View File

@ -1,4 +1,5 @@
import { Auth, AuthConfig, createActionURL } from '@auth/core';
import { type Provider } from '@auth/core/providers';
import Nodemailer from '@auth/core/providers/nodemailer';
import Credentials from '@auth/core/providers/credentials';
import Github from '@auth/core/providers/github';
@ -89,10 +90,11 @@ export const authConfig: Omit<AuthConfig, 'raw'> = {
name: 'Google',
...env.auth.google,
}),
env.auth.provider.includes('custom') && {
env.auth.provider.includes('custom') &&
({
id: 'custom',
...env.auth.custom,
},
} as Provider),
]),
adapter: TianjiPrismaAdapter(prisma),
secret: env.auth.secret,