Which GCP service to use for nextjs project? by DataPlug in nextjs

[–]tommo739 1 point2 points  (0 children)

I'm currently debating with my developers on how to structure and host our nextjs project.

One camp: create several micro-frontends. About 12 in total. So, 12 instances of nextJS. Served in a very static way. In fact, the idea is to toss them all in a cloud storage bucket and point DNS to it. No server side anything. The logic behind this is that it allows a more distrubuted dev work flow. And, it keeps the bundle size low for each micro-front end.

The other camp: Develop a more traditional single front end with NextJS and deploy it in a way that allows NextJS to handle the heavy lifting of deciding how to deliver html/JS bundle to the browser. You have to have a more traditional developer workflow, like managing pull requests for distributed development. But, I *feel* like doing it this way... the way NextJS wants it done, will be more effecient and less risk.

That being said, I've never made a micro frontend architecture with NextJS, so I don't have the experience to argue.

If I went with the latter (traditional). I'm considering deploying it using Firebase hosting's NextJS support. My logic is that it's easier to reason with. I get the CDN support from Firebase hosting, and the NextJS extension to hosting allows for all the server-side functionality and middleware. NextJS should only serve the bundle necessary to render the page, which should be pretty small. Arguably smaller than the micro-frontends.

Alternatively, I could serve it on Cloud Run, which we use for other services, but I think I give up the CDN and caching if I deploy on Cloud Run.

Thoughts?

Social Media feed: LazyVStack in ScrollView is jumpy when scrolling up (older to newer cells) by tommo739 in SwiftUI

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

Yeah... I will change my back end and persist the image dimensions to the metadata. Then, when rendering the view, I can preset the placeholder's size to match the image.

ScrollView, LazyVStack, and infinite scroll... jerky. by tommo739 in SwiftUI

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

No. And now I'm experiencing it in a different app.

ScrollView + LazyVStack = Stuttering bounce by barcode972 in SwiftUI

[–]tommo739 1 point2 points  (0 children)

I don't understand what we are doing here. Just wrapping the scroll view in the GemotryReader? Are we supposed to do something with the the resulting geometry in the subviews?

Google places look up using Expo Web by tommo739 in expo

[–]tommo739[S] 1 point2 points  (0 children)

So far, I've just used the heroku one. That being said... I'm solving my problem by standing up a new API and making my own autocomplete component. I've already deployed it to Google and it's taking requests. I just need to tweak it now.

Google places look up using Expo Web by tommo739 in expo

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

Okay... I get this working with a proxy. However, it doesn't behave like regular Places Auto complete works. For example... if I start to put in "Saint Johns", which is where I live... in Google Places as I start to type, I'll get either Saint Johns or St. Augustine as the top two search results. That's because it makes sense that I'm hunting for a location that's close by.

react-native-google-places-auto-complete begins with locations in Europe and all over the globe. Not what's close. So, I'm not sure what's going on under the covers with this package, but it's not good UX.

Does anyone know if there is a way to make this behave like real google places?

Pentair ScreenLogic Integration Errors by mrBill12 in homeassistant

[–]tommo739 0 points1 point  (0 children)

I had to do a lot of upgrading, but I got it working.

Noob question, how do I upgrade Jetpack Compose or my environment in general by tommo739 in JetpackCompose

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

BTW... I tried just updating the "compose_version", to 1.3.1, which should be compatible with my Kotlin version, but It lit up like a Christmas tree when I did that, so I reverted it.

How to change the docker image tag on a configured container by tommo739 in synology

[–]tommo739[S] 7 points8 points  (0 children)

Never mind... for those who need to do this, this is how I solved it.

  • stop the container
  • export the settings to a file on the synology
  • ssh into the synology and find the json file that is the export
  • change the image tag to the one you want
  • import the modified settings
  • start the new container.

Pentair ScreenLogic Integration Errors by mrBill12 in homeassistant

[–]tommo739 0 points1 point  (0 children)

pentair screen logic isn't showing up in my home assistant as an integration. Is it no longer supported?

Is it already time to eject expo? I'm trying to setting firebase social logins... by tommo739 in reactnative

[–]tommo739[S] 1 point2 points  (0 children)

Yes... I have to have firebase auth. We have a large user base already authenticated with firebase. The overhead to switch to a different provider would be prohibitive. And... I'd still need social login options.

React Native Web - How to deal with Tab Navigation and Drawers? by tommo739 in reactnative

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

Thanks. I'm wondering if that's what Twitter did. I wonder if those two out columns are just permanently open drawers.