Skip to content

Instantly share code, notes, and snippets.

@ihorbond
Created April 13, 2022 21:57
Show Gist options
  • Save ihorbond/453f0c593e43447fc4d061598714a5a7 to your computer and use it in GitHub Desktop.
Save ihorbond/453f0c593e43447fc4d061598714a5a7 to your computer and use it in GitHub Desktop.
Add a script tag with callback to NuxtJS
head: {
title: 'Zero Code NFT Wizard',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }, // mobile responsive https://search.google.com/test/mobile-friendly
{ name: 'format-detection', content: 'telephone=no' },
{
hid: 'description',
name: 'description',
content: 'Drop your NFT collection with ZERO coding skills',
},
{ property: 'og:site_name', content: 'Zero Code NFT Wizard' },
...getSiteMeta(),
],
link: [{ rel: 'icon', type: 'image/x-icon', href: '/zero-code-icon.png' }],
script: [
{
src: 'https://cdn.jsdelivr.net/npm/@widgetbot/crate@3',
async: true,
defer: true,
callback: () => {
new Crate({
server: process.env.DISCORD_SERVER,
channel: process.env.DISCORD_CHANNEL,
})
},
},
],
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment