getImageURL() — supabase Function Reference
Architecture documentation for the getImageURL() function in generateMeta.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 3ea31e92_a93d_8488_9226_87ddc26093ef["getImageURL()"] e27be43b_8102_3846_2bda_1541dc989459["generateMeta()"] e27be43b_8102_3846_2bda_1541dc989459 -->|calls| 3ea31e92_a93d_8488_9226_87ddc26093ef a6675209_e47a_1f7f_804d_c05a892a7d10["getServerSideURL()"] 3ea31e92_a93d_8488_9226_87ddc26093ef -->|calls| a6675209_e47a_1f7f_804d_c05a892a7d10 style 3ea31e92_a93d_8488_9226_87ddc26093ef fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/cms/src/utilities/generateMeta.ts lines 7–19
const getImageURL = (image?: Media | Config['db']['defaultIDType'] | null) => {
const serverUrl = getServerSideURL()
let url = serverUrl + '/website-template-OG.webp'
if (image && typeof image === 'object' && 'url' in image) {
const ogUrl = image.sizes?.og?.url
url = ogUrl ? serverUrl + ogUrl : serverUrl + image.url
}
return url
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does getImageURL() do?
getImageURL() is a function in the supabase codebase.
What does getImageURL() call?
getImageURL() calls 1 function(s): getServerSideURL.
What calls getImageURL()?
getImageURL() is called by 1 function(s): generateMeta.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free