newEditLink() — supabase Function Reference
Architecture documentation for the newEditLink() function in GuidesMdx.template.tsx from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 70c06384_8dda_31de_ba22_ce75a80729a6["newEditLink()"] 5c8a5552_d99c_5b0d_2132_040301f438bf["getContent()"] 5c8a5552_d99c_5b0d_2132_040301f438bf -->|calls| 70c06384_8dda_31de_ba22_ce75a80729a6 59093974_e6d4_28f2_ee0c_e48bac3ddd48["getContent()"] 59093974_e6d4_28f2_ee0c_e48bac3ddd48 -->|calls| 70c06384_8dda_31de_ba22_ce75a80729a6 89e492b5_c893_2698_ebc1_ef4cd99938d7["getContent()"] 89e492b5_c893_2698_ebc1_ef4cd99938d7 -->|calls| 70c06384_8dda_31de_ba22_ce75a80729a6 5cb41408_b4f6_1668_2f89_bdc8aef17916["TerraformReferencePage()"] 5cb41408_b4f6_1668_2f89_bdc8aef17916 -->|calls| 70c06384_8dda_31de_ba22_ce75a80729a6 6a83d7b1_a464_6b53_55a5_1dcf74b2413c["AiPromptsPage()"] 6a83d7b1_a464_6b53_55a5_1dcf74b2413c -->|calls| 70c06384_8dda_31de_ba22_ce75a80729a6 85a25c65_e0b3_49ba_65e3_40dcfb559600["getContent()"] 85a25c65_e0b3_49ba_65e3_40dcfb559600 -->|calls| 70c06384_8dda_31de_ba22_ce75a80729a6 6401ad94_919c_8f13_34a9_a31d679a799b["Config()"] 6401ad94_919c_8f13_34a9_a31d679a799b -->|calls| 70c06384_8dda_31de_ba22_ce75a80729a6 1c8d94bc_1fdf_9e64_0ca8_7de2d059c4d1["AnalyticsConfigPage()"] 1c8d94bc_1fdf_9e64_0ca8_7de2d059c4d1 -->|calls| 70c06384_8dda_31de_ba22_ce75a80729a6 bae5fa46_b7dd_60ca_c4e9_8b3e0ddd51b5["AuthConfigPage()"] bae5fa46_b7dd_60ca_c4e9_8b3e0ddd51b5 -->|calls| 70c06384_8dda_31de_ba22_ce75a80729a6 02df079e_4c60_07ab_064b_af02d1624153["RealtimeConfigPage()"] 02df079e_4c60_07ab_064b_af02d1624153 -->|calls| 70c06384_8dda_31de_ba22_ce75a80729a6 5e221511_9a51_1345_6097_7e1df66f7602["StorageConfigPage()"] 5e221511_9a51_1345_6097_7e1df66f7602 -->|calls| 70c06384_8dda_31de_ba22_ce75a80729a6 e3f6760d_3d29_5416_665c_9614b409ec69["getGuidesMarkdownInternal()"] e3f6760d_3d29_5416_665c_9614b409ec69 -->|calls| 70c06384_8dda_31de_ba22_ce75a80729a6 style 70c06384_8dda_31de_ba22_ce75a80729a6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/features/docs/GuidesMdx.template.tsx lines 29–49
const newEditLink = (str: string): EditLink => {
if (str.startsWith('/')) {
throw Error(`Edit links cannot start with slashes. Received: ${str}`)
}
/**
* Catch strings that provide FQDNS without https?:
*
* At the start of a string, before the first slash, there is a dot
* surrounded by non-slash characters.
*/
if (/^[^\/]+\.[^\/]+\//.test(str)) {
throw Error(`Fully qualified domain names must start with 'https?'. Received: ${str}`)
}
return {
[EDIT_LINK_SYMBOL]: true,
link: str,
includesProtocol: str.startsWith('http://') || str.startsWith('https://'),
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does newEditLink() do?
newEditLink() is a function in the supabase codebase.
What calls newEditLink()?
newEditLink() is called by 12 function(s): AiPromptsPage, AnalyticsConfigPage, AuthConfigPage, Config, RealtimeConfigPage, StorageConfigPage, TerraformReferencePage, getContent, and 4 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free