itsMU1X
Explore posts from serversKPCKevin Powell - Community
•Created by itsMU1X on 1/24/2024 in #front-end
Performance things in lighthouse
33 replies
KPCKevin Powell - Community
•Created by itsMU1X on 10/11/2023 in #front-end
FCP, LCP in web vitals.
i made a website using svelte and tailwind css
this div here is making my website quite not a good one
so the image itself making something bad for
FCP
and LCP
and the h1
as well
so how can avoid that? glad to hear your solutions.10 replies
KPCKevin Powell - Community
•Created by itsMU1X on 8/2/2023 in #back-end
Help with next.js 13.4
next.js 13.4 if i'm not wrong uses a revaledating thing, so my page is not in every request a fresh one, like i have a page (server component) and i got a mysql values and view them in the page, the page will not be fresh, as a specific time will gone, so how can i make a every single request will give me a fresh page? is there's a config or whatever cuz i see the docs and nothing helped me, thanks. and please mention me if you replied.
4 replies
KPCKevin Powell - Community
•Created by itsMU1X on 7/20/2023 in #back-end
NextJS 13.4 - how to get the ip address using server functions.
Hey! i have two questions to ask..
first, i have a server function passed to a button and getting something for backend but sadly i don't know how to get the ip address..
when i use the
NextRequest
the ip
property returns undefined and the geo
returns empty json object.. so how can i get the ip address?
second and last, there's a header X-Forwarded-For
and can be hacked/abused from clients by passing a custom header.. so i don't need to go deep to protect this (no clue if vercel or others protected this) so how can i protect this?4 replies