File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ export function CopyMarkdownButton({pathname}: CopyMarkdownButtonProps) {
2525 const { emit} = usePlausibleEvent ( ) ;
2626
2727 const fetchMarkdownContent = useCallback ( async ( ) : Promise < string > => {
28- // This doesn't work on local development since we need the generated markdown
29- // files, and we need to be aware of the origin since we have two different origins .
28+ // PSA: It's expected that this doesn't work on local development since we need
29+ // the generated markdown files, which only are generated in the deploy pipeline .
3030 const response = await fetch ( `${ window . location . origin } /${ pathname } .md` ) ;
3131 if ( ! response . ok ) {
3232 throw new Error ( `Failed to fetch markdown content: ${ response . status } ` ) ;
You can’t perform that action at this time.
0 commit comments