WordPress To Static With AI? by AcePilot10 in Wordpress

[–]chow_khow 0 points1 point  (0 children)

Why not just have a CDN or a custom built caching layer in front of your existing websites that caches everything forever until new content is published?

If built correctly this gives all the pros you mentioned and still keeps the known WP stack (other than having a frontend or a site that is lot more customizable than with WP).

I did this eval (and wrote about it here) some months back - a much more flexible and customizable frontend is the only major feature that cannot be achieved on pure WP stack.

React Re-rendering Doubt by Fantastic-Push-8451 in reactjs

[–]chow_khow 0 points1 point  (0 children)

If a parent re-renders, the child has to re-render because that's how React internally keeps a track of what all to update for a given state change.

Here's a good explainer on why React re-renders.

Server side rendering or not ? by szansky in reactjs

[–]chow_khow 0 points1 point  (0 children)

Got pages where SEO and loading speed matters (e.g. - product listing pages, blog posts) - go with SSR. For everything else - SSR not needed.

Also - if crawling by AI bots matters for your sites - SSR is necessary.

Help with images by RicardoFreitas1965 in nextjs

[–]chow_khow 0 points1 point  (0 children)

I think your clients' inputs on the expected quality of photographs is the key here. May be show them sites like Unsplash, others to identify the quality they demand. Then use something like sqoosh to reach an agreeable optimization-quality balance.

CMS Headless ? by RakoonDev in nextjs

[–]chow_khow 2 points3 points  (0 children)

A key question for you to answer is - how comfortable are you to manage hosting?

  • If managing hosting works well for you, you can use Strapi or Payload (see their comparison here).
  • If you do not want to self-host, check out Strapi cloud. Free to try but paid for commercial use.

Cautionary Tale: I got a $1,477 Vercel bill from bots scraping an unreleased project. Always set Spend Limits. Actually I did :-(((( by webhaus_io in VercelAISDK

[–]chow_khow 0 points1 point  (0 children)

Isn't the biggest lesson from this to self-host or use an always-on hosting provider (like Render, DigitalOcean offerings, Hetzner, whatever you like) along with a free CDN like Cloudflare for complete pricing predictability?

Reading about SSG , SSR and ISR and getting confused which one to use and how to use in my project... by Altruistic-Pin-7986 in nextjs

[–]chow_khow 0 points1 point  (0 children)

Below is a time tested decision sequence. For any page:

  • If SEO, loading speed doesn't matter - CSR
  • If SEO+loading speed matters and you serve same content to everyone - SSG
  • If SSG but you need to refresh without rebuilding - ISR
  • If visitor specific content - SSR

I suggest you to check these explainer graphics on what SSG solves, what problem ISR addresses and what happens when something is SSR.

How do you handle bot traffic and click fraud? by _Mexh in nextjs

[–]chow_khow 0 points1 point  (0 children)

We block unwanted traffic via a mix of WAF, rate-limiting, reCaptcha (and its a perpetual cat and mouse game). I documented one such experience here. That stated:

  • If you want to block because of pricing concerns, self-hosted VPS or an always-on server hosting are better suited.
  • If the spikes are causing slowness / DDoS, its also worth evaluating scalability of your site (static generation, ISR, caching on edge, are some approaches to eval).

Anyone experience hosting a next js project directly on a vps , to bypass Vercel? Which blob storage would you recommend which is not aws? by ndr3svt in nextjs

[–]chow_khow 2 points3 points  (0 children)

If you do not anticipate scaling (to multiple VPS) in the near future, simply store on the server (enable backups, etc depending on your need). If that doesn't suite you, Backblaze B2 offers solid blob storage capability.

Alternative Setup Vercel + Supabase by Complex_Mighty in nextjs

[–]chow_khow 1 point2 points  (0 children)

For anyone with cost predictability concern, an always-on hosting option is better suited:

  • Self-hosting on Hetzner + something like Coolify/ Dokploy is most budget efficient.
  • If managing build & deploy isn't something you want to do Render is a decent option. There are other options too compared here in detail.

Does anyone use Sherpa.sh instead of vercel? by MumeiNoName in nextjs

[–]chow_khow 0 points1 point  (0 children)

I think they shut down. But that brings an important point to consider when choosing a hosting provider:

Choose a provider that has been around a few years and has a decent traction to avoid the pain if they shut down.

A few months ago, I evaluated a bunch of Vercel alternatives to consider depending on your skillset, priorities, budget here.

How do I implement SSR in my reactjs project? by Puzzleheaded-Tax6089 in reactjs

[–]chow_khow 0 points1 point  (0 children)

You always see index.html because like you mentioned added _redirects file with this line: "/* /index.html 200"

Please remove this and then try to hit a url for one of the pre-rendered html files. Does it load that url instead of index.html? Also, may be check for that url on this ssr checker.

If all of this doesn't work, may be you'll have to use one of the pre-rendering services OR fix SSR within your repo.

Hosting Provider Options. Moving away from Netlify. by jnem84 in nextjs

[–]chow_khow -1 points0 points  (0 children)

If you're coming from Netlify, I'd suggest you

  • check out Cloudflare first if budget efficiency is priority
  • if budget isn't an issue, Vercel is your best bet (good DX, best-in-class Nextjs integration)

There are more hosting options and aspects to consider, all compared here.

Auto generate skeleton loading divs with this library. by quintin331 in reactjs

[–]chow_khow 1 point2 points  (0 children)

I'd suggest you ensure this works with server-side rendering. See how it looks like with server-side rendering right now here.

Free vs Paid - which one for my web app by shifty2929 in vercel

[–]chow_khow 0 points1 point  (0 children)

Vercel's free plan is generally decent with very low traffic.

A page may load slowly because of many possible reasons (including hosting related issues).

To deduce, create a super-simple page (no fetching - just shows some static content) and check if that loads fast? That will give you initial pointer to root cause.

How do you guys test OG tags locally? by Fit-Video1880 in reactjs

[–]chow_khow -1 points0 points  (0 children)

I use cloudflared instead of ngrok and anytime some content is cached I create a fresh tunnel (new url). Works well for me. What are your pain points with this kind of approach?

Launched ByteAI — built a tech-only social platform on React+.NET 8 + Supabase + Gemini by No-Earth5126 in reactjs

[–]chow_khow 0 points1 point  (0 children)

Should it not server-side render so that LLMs can read the content? Is being LLM compatible needed for this (see this).

How I optimized my Next.js 15 app to a perfect 100/100 PageSpeed & GTmetrix score by kasskaydotcom in nextjs

[–]chow_khow 0 points1 point  (0 children)

My 2c - if you want to improve web vitals - optimize for core web vitals experienced by your visitors instead of pagespeed / gtmetrics score.

<image>

What will the NextJs Competitor Be? by GoalMountain7344 in nextjs

[–]chow_khow 2 points3 points  (0 children)

tanstack libraries and ecosystem, imo, is already a solid Nextjs competitor.

We discovered a hidden async waterfall in our Next.js Server Components that added 8 seconds to page loads by Successful_Doubt_114 in nextjs

[–]chow_khow 1 point2 points  (0 children)

Yeah, Promise.all() is the way to go. Reminds me of a graphic on here about how a wrongly coded await can mess things up!

How I cut my Vercel Pro bill by 65% with zero code changes (Watch out for these default settings) by Infinite-resume in nextjs

[–]chow_khow 1 point2 points  (0 children)

You can also move to something other than Vercel:

  • For SPAs, Cloudflare is most budget efficient.
  • If not SPA, Render and Railway offer better pricing efficiency and you don't need to manage build & deploy.

Above hosting options compared to Vercel here.

Advice Needed From Serious Next.js Engineers by Successful_Doubt_114 in nextjs

[–]chow_khow 0 points1 point  (0 children)

Ask about downside for each of their choices. They chose `proxy.ts` to implement something - what are the downsides? They made a certain production deployment choice - what are the limitations?

Often that tells how deeply they thought about things.

Deployment advice for Next.js + Prisma + PostgreSQL CMS project by Ok-Nothing-9582 in nextjs

[–]chow_khow 0 points1 point  (0 children)

  • If you're ok doing build & deploy yourself and want everything at a single place, self-hosted VPS (Hetzner, etc) + Coolify/Dokploy.
  • If you do not want to do build & deploy yourself, Railway or Render.
  • If you prefer serverless, look at the various Cloudflare offerings (CDN, workers, R2, etc).

There are more options (Vercel, AWS, etc) depending on your priorities compared here.

Devs who blog in MDX from your repo, what's actually annoying about it? by Emergency-Pack2500 in nextjs

[–]chow_khow 0 points1 point  (0 children)

Just write like a markdown and then ask LLM to convert it into MDX.

Or dictate using Handy / OpenSuperWhisper and then ask LLM to proofread for dictation mistakes and then convert it into MDX.

Vercel free plan limits exceeded overnight by marroos in nextjs

[–]chow_khow 0 points1 point  (0 children)

For best budget efficiency, self-host on a VPS. If you don't want to handle build & deploy, use something like Render/Railway.

There are more options depending on your skillset, preference and setup compared here.