isDevGraphiQL() — supabase Function Reference
Architecture documentation for the isDevGraphiQL() function in route.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 47f1fb98_99d8_02f2_c6fb_d505e40bcee9["isDevGraphiQL()"] 9f23b9c2_5895_763f_0113_465855239c31["handleGraphQLRequest()"] 9f23b9c2_5895_763f_0113_465855239c31 -->|calls| 47f1fb98_99d8_02f2_c6fb_d505e40bcee9 style 47f1fb98_99d8_02f2_c6fb_d505e40bcee9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/app/api/graphql/route.ts lines 94–102
function isDevGraphiQL(request: Request) {
const origin = request.headers.get('Origin')
const referrer = request.headers.get('Referer')
return (
IS_DEV &&
origin?.startsWith('http://localhost') &&
referrer === `${origin}${BASE_PATH ?? ''}/graphiql`
)
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does isDevGraphiQL() do?
isDevGraphiQL() is a function in the supabase codebase.
What calls isDevGraphiQL()?
isDevGraphiQL() is called by 1 function(s): handleGraphQLRequest.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free