I'm importing a google font to a scoped component style tag. This typically works fine with VueJS. Attempting the same with NuxtJS seems as though the font is not loading.
Running Nuxt locally works, but once deployed quite a few things seem to not work as intended. My question in this instance is how do I properly import Google Fonts and use them within components?
<!-- @/components/MyComponent.vue -->
<template>
<p class="custom-font">Some Text</p>
</template>
<style scoped>
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');
.custom-font {
font-family: 'Fredoka One', cursive !important;
}
</style>