interface handlerOptions { baseEndpoint: string; } // Return GraphQL playground for /___graphql endpoint const handler = (request: Request, { baseEndpoint }: handlerOptions) => { return new Response(html(baseEndpoint), { headers: { "Content-Type": "text/html" }, }); }; export default handler; const html = (baseEndpoint: string) => `