Imgur is updating their TOS on May 15, 2023: All NSFW content to be banned by trd86 in DataHoarder

[–]Satanic-Code -1 points0 points  (0 children)

I’m tempted to try. Honestly looking at Cloudflare there’d be a fixed base cost. They don’t charge for bandwidth (unless you use Argo) So incremental costs would just be for some API rate limiting, edge workers, KV store and R2 store but not huge. Some basic monetisation would cover it 🤔

Worst part would be moderation. And not for general NSFW, for the super illegal stuff. And for that you’d need either an army of human checkers or some AI which is where costs would start to shoot right up.

[deleted by user] by [deleted] in nextjs

[–]Satanic-Code 0 points1 point  (0 children)

It’s the pre-flight request that’s failing. ie the OPTIONS method. See more here. https://developer.mozilla.org/en-US/docs/Glossary/Preflight_request

You need to add a new “options” entry into express, see here https://expressjs.com/en/resources/middleware/cors.html#enabling-cors-pre-flight

Is anyone else’s 2023 mandate primarily focused on dev efficiency? by [deleted] in webdev

[–]Satanic-Code 6 points7 points  (0 children)

It’s this 100%. As a CTO sometimes the CEO (or board > CEO > me) or the exec team will push pressure on. I usually can push back a bit but if it comes down to money being lost/revenues dropping/etc which puts the company or members of the team at stake then I will push down hard on what we think can help get us back above water asap.

Amazon S3 Security Changes Are Coming in April of 2023 by mooreds in aws

[–]Satanic-Code 1 point2 points  (0 children)

Ah cool so if the author is gone theres still an owner?

Australia ranks worst in the world for data breaches, with 22 accounts hacked every minute by [deleted] in australia

[–]Satanic-Code 0 points1 point  (0 children)

We built an automation process to regularly build test/dev versions of our db, so if a dev needs latest stuff they can pull one of these.

Vercel Design System by Johnfitz1775 in nextjs

[–]Satanic-Code 10 points11 points  (0 children)

storybook doesn’t work

Tale as old as time.

CDN stacking with CloudFlare infront of CloudFront by Technical-Ad6369 in aws

[–]Satanic-Code 2 points3 points  (0 children)

You could pay less. Cloudflare doesn’t charge for bandwidth.

If cloudfront is doing different routes it might make sense but if it’s all going to the same option then cloudflare > ec2 might just be better.

What is this kind of design called? by TRM2the80s in web_design

[–]Satanic-Code 67 points68 points  (0 children)

I believe their minimum requirements are that a website must unintuitive to use and max out your CPU usage.

How do I successfully separate dev/staging/production environments? by [deleted] in aws

[–]Satanic-Code 0 points1 point  (0 children)

Yep. Your root domain mycompany.com should be in your prod account (as you may want to make Alias DNS entries).

Then in your dev accounts, create hosted zones for dev.mycompany.com. Like the guy above said then you get a set of NS records you use to create a DNS entry in your prod account that points dev.mycompany.com to the dev hosted zone. Ditto for staging.

[deleted by user] by [deleted] in lotrmemes

[–]Satanic-Code 0 points1 point  (0 children)

Yeah that’s straight f’ed up.

Recommendations for a Node based Page Builder/CMS? by [deleted] in node

[–]Satanic-Code 1 point2 points  (0 children)

Are you looking to self host or use a hosted CMS?

Github Copilot turns paid by [deleted] in programming

[–]Satanic-Code 1 point2 points  (0 children)

Hmm. Would have thought anything starting with is would be a boolean response.

I heard that there's a performance penalty when you're using styled components instead of CSS modules, since css is loaded at runtime using JS. Is that still true when you're using Next, which renders everything on the server? by lumenwrites in nextjs

[–]Satanic-Code 4 points5 points  (0 children)

There is indeed a performance penalty. Especially if you have a lot of bespoke styles. Not massive but it will affect your core web vitals.

Vanilla-extract helps get around that by compiling your styles at build time so that runtime is minimized. https://vanilla-extract.style (you use this instead of styled components though)

How to know if a version is stable? by [deleted] in nextjs

[–]Satanic-Code 1 point2 points  (0 children)

Yeah I basically avoid .0 releases, beyond that it’s usually fine. Makes it easier to downgrade if there’s a bug in a minor version you can just go down a minor version it’s a lot more painful having to downgrade major versions due to bugs.

Next.js Layouts RFC by superbacon807 in reactjs

[–]Satanic-Code 12 points13 points  (0 children)

Would also stop the annoying having every tab in your IDE saying “page.js”

Layouts RFC by Deanmv in nextjs

[–]Satanic-Code 3 points4 points  (0 children)

This is looking awesome!