Skip to content

Commit

Permalink
use configureServer from keystonejs/keystone#4903
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamsi committed Feb 21, 2021
1 parent deaafb6 commit 7926a30
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples-next/basic/keystone.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { config } from '@keystone-next/keystone/schema';
import { statelessSessions, withItemData } from '@keystone-next/keystone/session';
import { createAuth } from '@keystone-next/auth';
import { static as expressStatic } from 'express';
import { dirname } from 'path';

import { lists, extendGraphqlSchema } from './schema';

Expand Down Expand Up @@ -52,5 +54,12 @@ export default auth.withAuth(
// // store: redisSessionStore({ client: redis.createClient() }),
// secret: sessionSecret,
// }),
server: {
//@ts-ignore
configureServer(app) {
const tinymcePath = dirname(require.resolve('tinymce'));
app.use('/tinymce-assets', expressStatic(tinymcePath));
},
},
})
);

0 comments on commit 7926a30

Please sign in to comment.