chore: fix ci problem
This commit is contained in:
parent
d0afdf5c91
commit
63484d0db5
@ -5,7 +5,6 @@ import swaggerUI from 'swagger-ui-express';
|
|||||||
import passport from 'passport';
|
import passport from 'passport';
|
||||||
import morgan from 'morgan';
|
import morgan from 'morgan';
|
||||||
import { websiteRouter } from './router/website.js';
|
import { websiteRouter } from './router/website.js';
|
||||||
import { workspaceRouter } from './router/workspace.js';
|
|
||||||
import { telemetryRouter } from './router/telemetry.js';
|
import { telemetryRouter } from './router/telemetry.js';
|
||||||
import {
|
import {
|
||||||
trpcExpressMiddleware,
|
trpcExpressMiddleware,
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import { Auth, AuthConfig, createActionURL } from '@auth/core';
|
import { Auth, AuthConfig, createActionURL } from '@auth/core';
|
||||||
|
import { type Provider } from '@auth/core/providers';
|
||||||
import Nodemailer from '@auth/core/providers/nodemailer';
|
import Nodemailer from '@auth/core/providers/nodemailer';
|
||||||
import Credentials from '@auth/core/providers/credentials';
|
import Credentials from '@auth/core/providers/credentials';
|
||||||
import Github from '@auth/core/providers/github';
|
import Github from '@auth/core/providers/github';
|
||||||
@ -89,10 +90,11 @@ export const authConfig: Omit<AuthConfig, 'raw'> = {
|
|||||||
name: 'Google',
|
name: 'Google',
|
||||||
...env.auth.google,
|
...env.auth.google,
|
||||||
}),
|
}),
|
||||||
env.auth.provider.includes('custom') && {
|
env.auth.provider.includes('custom') &&
|
||||||
id: 'custom',
|
({
|
||||||
...env.auth.custom,
|
id: 'custom',
|
||||||
},
|
...env.auth.custom,
|
||||||
|
} as Provider),
|
||||||
]),
|
]),
|
||||||
adapter: TianjiPrismaAdapter(prisma),
|
adapter: TianjiPrismaAdapter(prisma),
|
||||||
secret: env.auth.secret,
|
secret: env.auth.secret,
|
||||||
|
Loading…
Reference in New Issue
Block a user