Optimize stripe links (#2258)

This commit is contained in:
Geometrically 2024-08-22 15:37:48 -05:00 committed by GitHub
parent a0bd011b80
commit 599f23c8aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 20 additions and 7 deletions

View File

@ -77,13 +77,6 @@ export default defineNuxtConfig({
title: "Modrinth mods", title: "Modrinth mods",
}, },
], ],
script: [
{
src: "https://js.stripe.com/v3/",
defer: true,
async: true,
},
],
}, },
}, },
vite: { vite: {

View File

@ -108,6 +108,16 @@ useSeoMeta({
ogDescription: description, ogDescription: description,
}); });
useHead({
script: [
{
src: "https://js.stripe.com/v3/",
defer: true,
async: true,
},
],
});
const vintl = useVIntl(); const vintl = useVIntl();
const data = useNuxtApp(); const data = useNuxtApp();

View File

@ -344,6 +344,16 @@ definePageMeta({
middleware: "auth", middleware: "auth",
}); });
useHead({
script: [
{
src: "https://js.stripe.com/v3/",
defer: true,
async: true,
},
],
});
const data = useNuxtApp(); const data = useNuxtApp();
const config = useRuntimeConfig(); const config = useRuntimeConfig();