diff --git a/publicodes/source/components/PublicodesBlock.tsx b/publicodes/source/components/PublicodesBlock.tsx index aeb9dbae9..79a36f451 100644 --- a/publicodes/source/components/PublicodesBlock.tsx +++ b/publicodes/source/components/PublicodesBlock.tsx @@ -2,6 +2,8 @@ import React from 'react' import emoji from 'react-easy-emoji' export default function PublicodesBlock({ source }: { source: string }) { + const baseURL = + location.hostname === 'localhost' ? '/publicodes' : 'https://publi.codes' return (