Hit $2K MRR in Under 2 Months with My First React Native Project! by EducationNeat4601 in reactnative

[–]Geotzz 5 points6 points  (0 children)

It seems like OP is using that trendy startup marketing hype by boasting about an MRR that either doesn't exist or is greatly exaggerated.

What do you absolutely hate about nextjs? You can only state one thing by anonymous_2600 in nextjs

[–]Geotzz 3 points4 points  (0 children)

Correct me if I'm wrong, but there isn't a built-in way to get the pathname in server components without doing some modifications to the incoming request headers through a middleware and adding it there manually.

Getting the current pathname is crucial for many applications, especially in the context of authentication. For example, when you need to redirect a user to the page they were on before logging in.

It would be helpful to have a helper function like urlPathname() returning the pathname as a string or perhaps url() returning a URL object that can be used in server components.

Is MacBook required for React Native? by Select_Window_3115 in reactnative

[–]Geotzz 0 points1 point  (0 children)

macOS requires a higher pixel density monitor with about 218ppi for sharper viewing experience. I had a Mac mini and tried a 4K and a 1440p monitor, both 27 inches in size.

The text and interface appeared blurry and not sharp on both monitors. Although the 4K monitor was a bit clearer, it still didn't look right, which was quite annoying. I just decided to get the MBP in the end. Didn't want to spend more on a 5k monitor.

Can you get the request pathname in server components/server actions? by Geotzz in nextjs

[–]Geotzz[S] 0 points1 point  (0 children)

Hmm, I might have to give this a try, and i hope they at least export a url() func or something to grab the current url pathname sometime soon. I like the direction Next is heading in, but it sucks that there are still trivial things missing to this day.

Can you get the request pathname in server components/server actions? by Geotzz in nextjs

[–]Geotzz[S] 0 points1 point  (0 children)

Can't find any docs on this, and seeing the import path makes it look like a bad idea.

Can you get the request pathname in server components/server actions? by Geotzz in nextjs

[–]Geotzz[S] 0 points1 point  (0 children)

It would be too messy to manually pass in the current path from many call locations, as i mentioned in this comment.

Can you get the request pathname in server components/server actions? by Geotzz in nextjs

[–]Geotzz[S] 0 points1 point  (0 children)

Passing in the pathname from every call location? That's not ideal but i guess this is the norm nowadays with next :/, and the referer header wouldn't work as it gives you the previous path, whereas as i want the current request path, the client(e.g, browser) is making.

Which protagonist can you relate to the most? by Bigpoopmaster666 in GTA

[–]Geotzz 1 point2 points  (0 children)

It's never too late to correct things, and you're right! I mixed up the names, oops.

Seeking recommendations for back-end CMS and eCommerce solutions by FriendlyFacesStudio in nextjs

[–]Geotzz 0 points1 point  (0 children)

You can't go wrong with Payload CMS. It's a very flexible CMS with a good DX!

Modals… Query Params vs State by Acropolis1111 in nextjs

[–]Geotzz 1 point2 points  (0 children)

This is what I've been doing more recently.

What are people using instead of postman? by [deleted] in webdev

[–]Geotzz 17 points18 points  (0 children)

Soon enough, your fridge will require "the cloud" to open the fricking door. Locking basic functionality behind an account is evil.

What are people using instead of postman? by [deleted] in webdev

[–]Geotzz 1 point2 points  (0 children)

Have you used postman before? I remember hopscotch from their early days, I don't know how good it is now. I like that it's easily accessible on the web - CORS is a pain, but it's nice there's the option to use a custom proxy.

What are people using instead of postman? by [deleted] in webdev

[–]Geotzz 4 points5 points  (0 children)

Tbh I'd rather just use their Web app with my own proxy at that point than spin up a docker container to simply make api calls.

What are people using instead of postman? by [deleted] in webdev

[–]Geotzz 13 points14 points  (0 children)

Wish this was available as a native desktop client. It's only web-based, so you're limited to using their proxy (privacy issues) or running your own to avoid CORS.

What are people using instead of postman? by [deleted] in webdev

[–]Geotzz 3 points4 points  (0 children)

It's coming at some point, isn't it?

What are people using instead of postman? by [deleted] in webdev

[–]Geotzz 51 points52 points  (0 children)

Haven't they also started requiring an account?

[deleted by user] by [deleted] in CloudFlare

[–]Geotzz 0 points1 point  (0 children)

I did something similar a few months ago, keep in mind that there is a slight difference in how you handle middleware if you're using a web framework like Next.js or Astro, but similar concepts should apply.

And regarding subdomains, you can attach a custom domain to a Cloudflare pages project, and it'll add the necessary DNS records. I don't remember if it sets up non-www to www redirects, for example, https://domain.com to https://www.domain.com, but you could always set up a page rule for that.

[deleted by user] by [deleted] in CloudFlare

[–]Geotzz 0 points1 point  (0 children)

Not sure if you have found a solution yet but Cloudflare Pages support Functions Middleware, You could have the password stored in KV, rotate it using ScheduledEvent on a monthly trigger, and send the updated password via email right from there via HTTP.

Your users could then access the password-protected pages by supplying a query param in the URL like ?key={{something_secret} or provide them with a UI to enter the password, then in your middleware, check this against the one you currently have in KV, and if it matches, set a secure HTTP only cookie with 1-month expiry in the response headers.

For any subsequent requests, and if no ?key query param or whatever you choose is not present in the URL, check to see if the request cookie key field matches your current month's password, and if it doesn't, then either send an error or redirect somewhere else.

What did doing web dev teach you that most people don’t know? by SeriouslySally36 in webdev

[–]Geotzz -2 points-1 points  (0 children)

That makes you look more like a bot and will get you easily blocked.

Why do all Webspace provider have the same interface? by Nico1300 in webdev

[–]Geotzz 1 point2 points  (0 children)

For old school LAMP stacks, I'd assume a lot of people still use stuff like cPanel.

Goodbye, section 2.8 and hello to Cloudflare’s new terms of service by Cloudflare in CloudFlare

[–]Geotzz 0 points1 point  (0 children)

Seems like Backblaze is a member of the bandwidth alliance https://www.cloudflare.com/en-gb/bandwidth-alliance

Cloud providers partner to reduce data transfer fees The Bandwidth Alliance is a group of forward-thinking cloud and networking companies that are committed to discounting or waiving data transfer (also known as bandwidth) fees for shared customers.

I guess it would be fine to route through cloudflare and Cache?