AngeloK
AngeloK
NNuxt
Created by AngeloK on 9/19/2024 in #❓・help
@nuxt/fonts adobe
Anyone here using nuxt/fonts to load adobe fonts? I'm setting my id of my adobe project in the nuxt config like described docs. https://use.typekit.net/gqr4tpc.css This is my typekit link. I'm getting an error: Could not produce font face declaration from adobe for font family ador-hairline. Anyone got a clue?
fonts: {
families: [
{
name: "Gotham",
provider: "local",
weights: [400, 500],
styles: ["normal"],
subsets: ["latin"],
},
{
name: "ador-hairline",
provider: "adobe",
weights: [500],
styles: ["normal"],
},
],
adobe: {
id: "gqr4tpc",
},
},
fonts: {
families: [
{
name: "Gotham",
provider: "local",
weights: [400, 500],
styles: ["normal"],
subsets: ["latin"],
},
{
name: "ador-hairline",
provider: "adobe",
weights: [500],
styles: ["normal"],
},
],
adobe: {
id: "gqr4tpc",
},
},
8 replies
NNuxt
Created by AngeloK on 6/1/2023 in #❓・help
Group routes in directory without affecting url?
Hi, is there a way to group routes in a directory without affecting the url? Something like this in sveltekit https://kit.svelte.dev/docs/advanced-routing#advanced-layouts-group but then in nuxt?
1 replies
NNuxt
Created by AngeloK on 6/1/2023 in #❓・help
Optimistic UI with useAsyncData?
Hi, In the docs for optimistic UI https://nuxt.com/docs/api/composables/use-nuxt-data#optimistic-updates they use useFetch as an example. Is this also possible with useAsyncData? I tried setting the onRequest and onRequestError but this is not available on useAsyncData. Thanks
2 replies
NNuxt
Created by AngeloK on 5/5/2023 in #❓・help
Redis storage + DDEV Redis
Hi, I am trying to setup a redis storage layer. I've got a local Redis container running on ddev. I'm following this guide: https://nuxt.com/docs/guide/directory-structure/server#example-using-redis My ddev describe says redis is running on https://xxxx.ddev.site:6379 and my nuxt config has the following settings:
nitro: {
storage: {
redis: {
driver: "redis",
/* redis connector options */
port: 6379, // Redis port
host: "https://xxxx.ddev.site", // Redis host
},
},
},
nitro: {
storage: {
redis: {
driver: "redis",
/* redis connector options */
port: 6379, // Redis port
host: "https://xxxx.ddev.site", // Redis host
},
},
},
However calling the getItem method results in the following error: [ioredis] Unhandled error event: ParserError: Protocol error, got "H" as reply type byte. Please report this. Anyone have a idea what could cause this? Can't find anything on google. Think it might have to be an issue with tls/ssl? Thanks
1 replies
NNuxt
Created by AngeloK on 3/9/2023 in #❓・help
How does prefetch work?
How does prefetch work on NuxtLinks? I have some pages where i use https://nuxt-graphql-client.web.app/ to fetch data. I have prefetch enabled on links to these pages but I don't see any fetch/XHR calls happening in the network tab. Should the data of these pages not get prefetched? So the transitions feels like a SPA? Or am I seeing this wrong?
1 replies