joe_black_unlucky
joe_black_unlucky
NNuxt
Created by Zeeeth on 10/1/2024 in #❓・help
Add data to store on Page Refresh
You can use pinia persisted state plugin to store your userStore in a cookie
8 replies
NNuxt
Created by Shane on 9/3/2024 in #❓・help
Trying to render page from post request
Hey thanks for sharing your solution Shane. If it works who cares 🙂
11 replies
NNuxt
Created by George on 5/31/2024 in #❓・help
NuxtImage With IPX not working in production
Vercel doesnt have the correct libraries installed in their node to support IPX image conversions. You need to store your images on bunnyCDN or similar that has the image optimization and caching built in. I personally have AWS S3 storage with an image optimization lambda function to serve my images and convert them on the fly.
5 replies
NNuxt
Created by joe_black_unlucky on 9/10/2024 in #❓・help
/& prepended to src in img tag
I guess it's to mark non-existent images, this happend while changing branches where the file doesnt exist
4 replies
NNuxt
Created by joe_black_unlucky on 9/10/2024 in #❓・help
/& prepended to src in img tag
restarting nuxt dev solved the issue
4 replies
NNuxt
Created by Boog on 9/10/2024 in #❓・help
ACL Challenges with Nuxt 3 and Supabase in Server-Rendered Context
I haven't worked with supabase yet or jwt tokens but the concept I believe is the same, set a cookie during login procedures (your JWT token perhaps) and use that cookie server side to authenticate. You can access the request object with the cookie headers in a nuxt server side plugin
2 replies
NNuxt
Created by BlueStone on 9/10/2024 in #❓・help
use SSR with backend server?
If you do your data requests with Pinia or asyncData, then your server will fetch the data and render in SSR and attach the state to the returned html to the client. Hydration will still occur on the client side, but should get the rendered page.
8 replies
NNuxt
Created by Nisthar on 9/3/2024 in #❓・help
How to use layouts (using named slots)?
wow, how ungrateful, at this point i would just move on. But I want to suggest one last thing, if you could be more specific in what you want to achieve as in an actual use case then we can help you with an actual solution. Your example of changing the title can be done much simpler, but clearly you dont want a title change but a component in there, in that case you can just compare the router path and change visibility in your dashboard for that. Why do people always want to force their square peg into a round hole if there are so many other ways of solving the same problem, but no you want the square peg in the round hole and screw all other suggestions. I'm out...
118 replies
NNuxt
Created by Nisthar on 9/3/2024 in #❓・help
How to use layouts (using named slots)?
fork it in github to your own account and then open it in stackblitz, it connects to your github account
118 replies
NNuxt
Created by Nisthar on 9/3/2024 in #❓・help
How to use layouts (using named slots)?
@Patrik please can you add it to a stackblitz for future reference
118 replies
NNuxt
Created by Flinty on 9/3/2024 in #❓・help
OgImage - Crashing app
Have you tried opening an issue on https://github.com/nuxt-modules/og-image? Seems like they might have more insights
5 replies
NNuxt
Created by benwis on 9/4/2024 in #❓・help
How to Edit v-icon created by prepend-icon in v-list-item
Yeah, not nuxt related
4 replies
NNuxt
Created by TokyoStarz on 9/4/2024 in #❓・help
is there a faster building dev version of nuxt generate
could you share the link for the release?
7 replies
NNuxt
Created by Nisthar on 9/3/2024 in #❓・help
How to use layouts (using named slots)?
I think your question doesn't clearly state what you want to do, and you havent included the layout file so we are just going on assumptions. template slots can only by targeted within the tag of said component, so either you create header and content slots for each dashboard page and pass the layout slots all the way down or we dont know what you want to do. Here some code that might help
<!-- Pass on any defined slots to component-->
<template
v-for="(_, name) in $slots"
#[name]="slotData"
>
<slot
:name="name"
v-bind="slotData"
/>
</template>
<!-- Pass on any defined slots to component-->
<template
v-for="(_, name) in $slots"
#[name]="slotData"
>
<slot
:name="name"
v-bind="slotData"
/>
</template>
118 replies
NNuxt
Created by Nisthar on 9/3/2024 in #❓・help
How to use layouts (using named slots)?
There's many ways to skin this cat @Nisthar maybe you can explain your use case, i'm sure there is a simpler way of solving your problem
118 replies
NNuxt
Created by Ali Guliyev on 9/4/2024 in #❓・help
Migrating simple existing content including styles (Nuxt 3) to Nuxt Content
Look at what markdown formatting has to offer, and align it with what you want... https://www.markdownguide.org/basic-syntax/
21 replies
NNuxt
Created by Ali Guliyev on 9/4/2024 in #❓・help
Migrating simple existing content including styles (Nuxt 3) to Nuxt Content
Is there a question anywhere or you just want someone to do it for you? Try #💼・hiring
21 replies
NNuxt
Created by Nisthar on 9/3/2024 in #❓・help
How to use layouts (using named slots)?
Yeah you right, im still on setting the page title meta tags, you can use teleport to teleport content or components to this header template, is one way https://nuxt.com/docs/api/components/teleports
118 replies
NNuxt
Created by Nisthar on 9/3/2024 in #❓・help
How to use layouts (using named slots)?
Child pages or components? yes from components you would need to bubble up an event if you are not using pinia. With pinia it's super easy, set the pinia store value in the child component and use that pinia store value in your layout page or wherever
118 replies
NNuxt
Created by cmcnicholas on 9/3/2024 in #❓・help
Prerender Ignore Wildcard Path
Also comes to mind, if you have a <NuxtLink /> in your application for these token urls, try adding external to the NuxtLink tag
9 replies