ExternalScriptsFunction does not take effect
willin opened this issue · 1 comments
willin commented
source: https://github.com/willin/willin.wang/blob/main/app/root.tsx#L41-L51
// create the scripts function with the correct type
const scripts: ExternalScriptsFunction = () => [
{
async: true,
src: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5059418763237956',
crossOrigin: 'anonymous'
}
];
// and export it through the handle, you could also create it inline here
// if you don't care about the type
export const handle = { scripts };
output: https://willin.wang
sergiodxa commented
You are not rendering the ExternalScripts component in https://github.com/willin/willin.wang/blob/main/app/layout/document.tsx