chore: revert #1794 for now until permanent init architecture is established

This commit is contained in:
James
2023-01-11 09:32:44 -05:00
parent 96002dbda5
commit 047efe02ff
7 changed files with 58 additions and 36 deletions

View File

@@ -5,11 +5,11 @@ import Logger from '../utilities/logger';
import loadConfig from '../config/load';
import payload from '..';
export async function generateGraphQLSchema(): Promise<void> {
export function generateGraphQLSchema(): void {
const logger = Logger();
const config = loadConfig();
await payload.init({
payload.init({
secret: '--unused--',
mongoURL: false,
local: true,