Flinty
Explore posts from serversOgImage - Crashing app
Hey, I have an app with OG Images enabled, using the package. Everything works on my localhost.
Testing the endpoint:
__og-image__/image/og.png
displays the image correctly, both via npm run dev
and via a Docker container, however when I deploy the container to my Kubernetes cluster, any requests to get the image causes the app to crash, with no logs:
The site URL is properly configured as well.
Any thoughts?5 replies
useFetch data not reactive
Hey! So I have a simple/new nuxt app with 2 pages,
/index
and /tenants
Each page has an HTTP request to a backend service elsewhere. When I refresh the page, it the data loads fine, but when I navigate to another page, the data does not "load". By this I mean the state does not get updated with the newly fetched data (I can see the network request in devtools). Below is the relevant code:
tenants.vue
index.vue
Below is the structure of Get
Oddly, the issue goes away after the first page navigation, and the code works as expected1 replies
DIAdiscord.js - Imagine an app
•Created by Flinty on 8/22/2023 in #djs-questions
Slash Command redirect
Hi folks. Looking to create a slash command, that could allow the user to be redirected to an external url in their browser. The use case is signing up for an account on a website. I'd like to implement a /register command that would allow them to be redirected to my authentication service with some prepopulated values
What's the best way to do this? Return a button or url for them to click, or can a redirect/open browser be forced?
24 replies
API Request not being triggered
Hey all. I have the following composable:
When I navigate to the route
/communities
from /
, I run the following code on the communities page: In my script setup
element of the page. For whatever reason, a network request is never kicked off, and the console logs from the composable are all null (bar the URL being logged, which works when I paste the URL into the browser)
Any ideas?10 replies
Nuxt 3 RC14 Page Transitions
Hi
I just upgraded for RC11 to RC14 and my page transitions have stopped working. Has something changed? I currently have In my
nuxt.config.ts
and CSS in my project's CSS file, yet the transitions have stopped working since upgrading last night2 replies
useLazyFetch force refetch
Hey, all. Just making the move to Nuxt 3.
I use
useLazyFetch
to fetch data on the client side/display loading screens. If I have 2 of these requests on one page, on the data from the first request is returned, and then the data is not refetched when navigating back to the page.
I'm doing the below currently: Surely this can't be the optimal solution to forcing the data to be refetched each time? Opinions welcome, I know this isn't right
Cheers!11 replies