itsMU1X
itsMU1X
Explore posts from servers
CDCloudflare Developers
Created by itsMU1X on 2/29/2024 in #general-help
is there's a turnsite npm?
i need to make a recaptcha for my website using cloudflare. and there's three question i wanna ask for. 1. is there's a turnsite (captcha client side) npm? 2. what are the different types for this captcha (managed, hidden, and the other one). 3. and what is the pre-clearance. thanks
1 replies
KPCKevin Powell - Community
Created by itsMU1X on 1/24/2024 in #front-end
Performance things in lighthouse
No description
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
<div class="w-52 sm:w-64">
<img
width="250px"
height="250px"
src="/images/logo.png"
alt="logo name"
class="aspect-square drop-shadow-2xl hover:scale-110 hover:rotate-2 duration-300"
/>
<h1 class="text-4xl mt-2 text-center">Logo Name</h1>
</div>
<div class="w-52 sm:w-64">
<img
width="250px"
height="250px"
src="/images/logo.png"
alt="logo name"
class="aspect-square drop-shadow-2xl hover:scale-110 hover:rotate-2 duration-300"
/>
<h1 class="text-4xl mt-2 text-center">Logo Name</h1>
</div>
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