none23
none23
TTCTheo's Typesafe Cult
Created by Arianos11 on 9/6/2024 in #questions
Proper technology stack for ecommerce
That's true, but only if that server is the end destination for the request and not just a proxy for a different server. Ecommerce backend usually has a lot much more logic besides serving data for the frontend and it's often not feasible/reasonable to move all of it into next/remix
18 replies
TTCTheo's Typesafe Cult
Created by Arianos11 on 9/6/2024 in #questions
Proper technology stack for ecommerce
You don't have to (and probably shouldn't) create a next api to proxy requests to your backend. It will just add one more network hop for your requests. Caching can be done without it. Moreover, if you handle all the user-specific data on the client, then you can probably just cache your pages. That would be simple and great for the web vitals
18 replies
TTCTheo's Typesafe Cult
Created by Arianos11 on 9/6/2024 in #questions
Proper technology stack for ecommerce
Either one will work fine. Both are really good for optimizing web vitals and your users won't really notice a difference. Next has waaay more info/examples online, so it might be easier to get started. And next's image optimization is really hard to replicate manually. Also there are no problems hosting next apps outside of Vercel, there are only problems hosting a serverless next app. But I'm pretty biased towards next. You should probably play with both and see what you like more.
18 replies
TTCTheo's Typesafe Cult
Created by tizu on 9/1/2024 in #questions
tailwind ui library or do I build myself?
If you want to modify the components' styles or behavior, I'd recommend shadcn. If not, either one is good Shadcn is basically helping you create your own component library. That's the point. That's why you need to commit them
15 replies
TTCTheo's Typesafe Cult
Created by Mugetsu on 8/30/2024 in #questions
BUILD TypeCheck and Lint disabled
pnpm next lint and pnpm tsc should be the same
3 replies
TTCTheo's Typesafe Cult
Created by Lautaro1998DS on 8/27/2024 in #questions
Hello people, I need help with a bug that has paralyzed me in teamwork for a week and a half
That will likely work, but I wouldn't recommend it. That's essentially running random node_modules scripts as root
16 replies
TTCTheo's Typesafe Cult
Created by beebae on 8/28/2024 in #questions
email client
Email client is generally an app (e.g. Outlook or Thunderbird) or a web app (e.g. Gmail web interface).
Your question sounds like something you should ask the person giving you this task. They are the only person who knows what they want from you
4 replies
TTCTheo's Typesafe Cult
Created by Lautaro1998DS on 8/27/2024 in #questions
Hello people, I need help with a bug that has paralyzed me in teamwork for a week and a half
Deleting node_modules sounds like a good idea
16 replies
TTCTheo's Typesafe Cult
Created by Lautaro1998DS on 8/27/2024 in #questions
Hello people, I need help with a bug that has paralyzed me in teamwork for a week and a half
If it doesn't, try googling "vscode eperm windows npm"
16 replies
TTCTheo's Typesafe Cult
Created by Lautaro1998DS on 8/27/2024 in #questions
Hello people, I need help with a bug that has paralyzed me in teamwork for a week and a half
I'm no windows expert, but first I'd try to npm cache clean --force, re-start VS Code, and try again.
16 replies
TTCTheo's Typesafe Cult
Created by johnny the fifth on 8/21/2024 in #questions
how to fix images adjusting after loading
I think your problem stems from styles being loaded too late. See if style={{ objectFit: ... }} fixes the issue
7 replies
TTCTheo's Typesafe Cult
Created by FleetAdmiralJakob 🗕 🗗 🗙 on 8/26/2024 in #questions
[Next.js Image Component] Cache Images between pages
No description
7 replies
TTCTheo's Typesafe Cult
Created by FleetAdmiralJakob 🗕 🗗 🗙 on 8/26/2024 in #questions
[Next.js Image Component] Cache Images between pages
That is is the image url is the same
7 replies
TTCTheo's Typesafe Cult
Created by FleetAdmiralJakob 🗕 🗗 🗙 on 8/26/2024 in #questions
[Next.js Image Component] Cache Images between pages
I think, cache-policy should already take care of that in a production build, unless you are using optimize={false} or have Disable cache checked in dev tools
7 replies
TTCTheo's Typesafe Cult
Created by univers.js on 8/25/2024 in #questions
TypeError: Unknown file extension ".ts"
AFAIK, it's ESM-related. I've just switched to tsx to avoid dealing with this
5 replies
TTCTheo's Typesafe Cult
Created by Eternal on 8/25/2024 in #questions
Should the server respond with the error or a generic "try again" message?
For error tracking, I'd generally just use Sentry and not re-invent the wheel unless I absolutely have to and there's a budget for it)
10 replies
TTCTheo's Typesafe Cult
Created by Saurabh on 8/23/2024 in #questions
I am getting error in eslint. I tried searching for solutions but couldn't find any. Can anyone help
How do you declare types for .eslintrc.cjs?
4 replies
TTCTheo's Typesafe Cult
Created by Saurabh on 8/23/2024 in #questions
I am getting error in eslint. I tried searching for solutions but couldn't find any. Can anyone help
You seem to be using @types/eslint v9. Next currently doesn't supports eslint v9 https://github.com/vercel/next.js/issues/64409
4 replies
TTCTheo's Typesafe Cult
Created by Night765 on 8/23/2024 in #questions
NextJS routing
8 replies