chore: use copy of options for modification
This commit is contained in:
@@ -23,7 +23,8 @@ import graphQLHandler from './graphql/graphQLHandler'
|
||||
import initGraphQLPlayground from './graphql/initPlayground'
|
||||
import { getPayload } from './payload'
|
||||
|
||||
export const initHTTP = async (options: InitOptions): Promise<Payload> => {
|
||||
export const initHTTP = async (incomingOptions: InitOptions): Promise<Payload> => {
|
||||
const options = { ...incomingOptions }
|
||||
if (typeof options.local === 'undefined') options.local = false
|
||||
|
||||
// Disable onInit because it will be called in top-level Payload
|
||||
|
||||
Reference in New Issue
Block a user