Skip to content

Commit ef67978

Browse files
tweak comment
1 parent b546c8c commit ef67978

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/copyMarkdownButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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}`);

0 commit comments

Comments
 (0)