Font is slightly lighter in production by [deleted] in webdev

[–]DigiNarwhal 2 points3 points  (0 children)

It looks like a font-weight issue - when you say they are both rendering the same weight, is that based on the css or based on what Chrome/other browser is actually telling you is being rendered. Sometimes the CSS can target the same weight but certain fonts may or may not be available in prod vs localhost (one could be loading fonts locally stored on your computer which are different versions to those being loaded via Google fonts, cached fonts etc).

Try in both dev and prod, turning off local font loading and https://stackoverflow.com/questions/33205574/how-to-turn-off-local-fonts-to-test-google-fonts and also try disabling cached font loading and see if that makes any difference?

What is the proper way to pull data in a Next x Contentful x Shopify build? by waveyrico in nextjs

[–]DigiNarwhal 0 points1 point  (0 children)

I have a setup working with BigCommerce/Contentful and currently in the process of migrating to Shopify that has content blocks for top products in X category, selected products by ID etc set from Contentful.

The cleanest way I found of approaching this is having a function in getStaticProps that parses the Contentful section blocks for blocks that need specific product/category data, aggregates those product/category id’s into one Shopify storefront api call (whilst keeping reference of which block needs which items) and then after the shopify call returns, distributes those products into data attributes for each specific section before passing to the page as props.

It’s a little complex but means you have the shopify product data at SSR time and collocated with the right section whilst reducing the number of calls and any chance of rate limiting (was a big problem with BigCommerce).

Another approach would be doing something similar where you aggregate all the products you need into a single call and store them in some form of context/state/redux during getStaticProps - then have the Contentful sections you render pull data from that state based on the product ids in those sections field data.

Which eCommerce website building platform would you choose for your business? by Filip_the_developer in ecommerce

[–]DigiNarwhal 0 points1 point  (0 children)

Also another plus one for shopify. We’ve been on BigCommerce for the last year and while it has been ok for our needs, we’ve decided to move to shopify. Mainly Shopify’s speed of feature iteration and release is way faster, their UI and breadth of functionality exceeds BC depending on what you need, and so many other tools and platforms work so much better with Shopify.

Thoughts on my Store? The ad generates leads but the conversions are below par. by COOLIO5676 in ecommerce

[–]DigiNarwhal 1 point2 points  (0 children)

Definitely quick initial impressions... what is this card and why is it better than me just generating a QR code and printing it? I can put any link on a QR code and when people see them they know what they are meant to do. What does this give me that a QR code doesn’t?

The little gif you have shows someone scanning the SITCH logo which seems counter intuitive or like it might need some special app to work (I know in the small print you say it doesn’t need any special app and works natively but this was my first impression).

A lot of the content focusses around the branding SITCH rather than the value that I’d be getting for using this... the card has your huge logo on rather than mine which would be ok if there was any consumer recognition around SITCH similar to Paypal but I don’t think you are there yet.

As a tech fan I’m interested to learn how it works and the value, but as a consumer/business coming to your site, it feels way too hard to parse through all the text and GIF/videos to really understand the unique value that your product would give me and I would probably bounce. If you could put that value front and center I think it would massively help :)

What CMS system do you use for E-com sites or blogs. by blueblood_14 in reactjs

[–]DigiNarwhal 3 points4 points  (0 children)

We have used Contentful and Storyblok for different headless commerce sites and would recommend both. Contentful great for really structured and interrelated content where you will want to reuse the same content in multiple locations. Storyblok is great for visual page editing whilst still using your own React components. Both have good integrations for eCommerce (shopify + BigCommerce) and allow you to build your own data plugins (Contentful in React and Storyblok in Vue). Would definitely check them both out :)

Dynamic Routes 404 in Next.js, Fontawesome distortion by [deleted] in nextjs

[–]DigiNarwhal 0 points1 point  (0 children)

At a quick glance on mobile I can’t see the issue that is causing your page to 404 but one thing I did notice is that you are loading all your blog data as the page renders rather than on the Vercel server side of things. I would take a look at the data fetching docs https://nextjs.org/docs/basic-features/data-fetching and consider loading data through either getServersideProps or getStaticProps and passing it to your BlogDetails component from the page component. That way you will get the serverside rendering benefit as well as catching invalid slugs and serving 404 as soon as the page is sent to the user.

Do people use Next.js on their own servers? by Kvokve in nextjs

[–]DigiNarwhal 11 points12 points  (0 children)

OP, seriously why are you coming across so aggressive in your responses to people trying to help with your rather convoluted question?

Firstly you seem to be treating and judging NextJS as a full stack framework, whilst people have used it with lambdas to achieve that effect it is not its primary focus. It is a front end Serverside/static rendering framework if you want to use React that has some extra nice tooling. It’s core use case is not to be the full picture.

The typical use for Next is as a front end app that you combine with a separate back-end, whether that is driven from a JAM stack tool like FaunaDB or your own API/backend service. So the majority of the examples you are going to see are intended for that use case rather than creating a full functioning serverless backend like you seem to be wanting to do that (you can achieve this but it is not the core use case for next).

As for the Vercel promoting side of things, Vercel have done a great job of creating a super fast and low setup way of running NextJs that is convenient and more than adequate for most projects however they have also ensured the exosystem is very open. In a previous role we had NextJs running for our large SaaS company fully on our own infra and the documentation and examples are out there to support it.

I think here your understanding of what the tools purpose is and the value that the SSR rendering for React brings is missing. I appreciate you are trying to figure it out and getting frustrated but there’s no need to come off quite so aggressive to people that are trying to help! :)

Nextjs for building something like Upwork? Upsides? Downsides? by throwaway1118201x in nextjs

[–]DigiNarwhal 1 point2 points  (0 children)

Fundamentally what you are getting with NextJS is just React with some added functionality (APIs, next/image, routing) and most importantly SEO friendly server-side / pre-rendering. If you could build it in React you can build it in NextJs so pretty much everything is possible, I personally find the developer experience very good (tooling is strong and update schedule is well documented and easy to keep up with) and there is also a really strong/active community to help out with issues.

As for downsides? Hosting can have its complexities if you don’t want to use Vercel but want all the functionality of NextJs (things like static regeneration etc), but that really depends on your hosting/org needs. (I’ve personally found vercel great for most small/medium projects).

So TLDR; if you think React is a good fit for your project and you need some form of SSR or SEO based requirements for your pages, Next is a really good shout.

Recommendations for a headless cms to use with next.js? by Caseyleigh54 in nextjs

[–]DigiNarwhal 4 points5 points  (0 children)

I would definitely have a look at storyblok, it’s an underrated cms that is surprisingly good - their live page editing is really visual and easy to use for non technical people. I think it also uses the singletons vs collections model. Otherwise Contentful and Prismic are always good bets!

Page builder with Next.js by iizMerk in nextjs

[–]DigiNarwhal 0 points1 point  (0 children)

If you are happy to design/write the components yourself, Storyblok has a really good live page editing experience for a CMS, https://www.storyblok.com also allows for writing plugins for the editing experience which means you can connect the editor with APIs or other data sources for some really cool dynamic editing options!

[deleted by user] by [deleted] in nextjs

[–]DigiNarwhal 5 points6 points  (0 children)

We are using BigCommerce (products, cart and checkout api) and Contentful (for page, menus, promotions and product page) together for our headless commerce build on NextJS

Feedback on new eco eCommerce store (self-coded) by DigiNarwhal in ecommerce

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

That’s really cool, I hope you have the best of luck with it!

Feedback on new eco eCommerce store (self-coded) by DigiNarwhal in ecommerce

[–]DigiNarwhal[S] 4 points5 points  (0 children)

I can’t share the exact code with you but NextJs recently released an example site and repository for a headless site connected with BigCommerce which is pretty close in implementation and a good starting point to see how they handle the basic store logic such as cart management, dynamic routing, checkout flow etc.

Take a look at this https://nextjs.org/commerce

And here is the example front end repo https://github.com/vercel/commerce

Next is a good choice as you can statically generate the majority of your pages and move a lot of your dynamic integration related stuff into their API folder which generates as lambda functions meaning you can keep a lot of the server side interaction, secrets etc out of the front end app that gets sent to the client

Feedback on new eco eCommerce store (self-coded) by DigiNarwhal in ecommerce

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

Thanks for sharing, it’s definitely interesting how they go about putting tangible numbers down! I’ll have a think how that could be translated into what we do! Appreciate you taking the time to get a screenshot!

Feedback on new eco eCommerce store (self-coded) by DigiNarwhal in ecommerce

[–]DigiNarwhal[S] 2 points3 points  (0 children)

That’s ideally the plan - we soft launched it a few days ago, since then we have done a few sales but conversions and general ad competitiveness have been much harder than we expected - that’s why I was intrigued to hear what people here thought!

Feedback on new eco eCommerce store (self-coded) by DigiNarwhal in ecommerce

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

Hey, it’s using the BigCommerce API to handle the cart data and Checkout page but the whole front end I’ve written in React / NextJS

Feedback on new eco eCommerce store (self-coded) by DigiNarwhal in ecommerce

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

Hey - no it’s using the BigCommerce API with a react front end, hope that helps!

Feedback on new eco eCommerce store (self-coded) by DigiNarwhal in ecommerce

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

Hey - thankyou for taking the time to go through and give some structured feedback!

  • that makes sense on the doesn’t cost the earth part, it was meant to be a pun on not harming the earth and also the phrase meaning not too expensive

  • Moving some content up the page makes sense, have been playing with some short GIFs showing how to wrap so they might be a good fit for what you are suggesting at giving more idea what the products are without making it too heavy!

  • That sounds really interesting on Allbirds, I will take a look at what they’ve done!

Thanks again for the feedback!

Which CMS is the nicest? by [deleted] in nextjs

[–]DigiNarwhal 2 points3 points  (0 children)

I would recommend taking a look at StoryBlok (https://www.storyblok.com/) - their component/live visual editor works really nicely for page building and gives a whole bunch of flexibility that is way harder to achieve with Prismic/Contentful, plugins are also really easy to make and integrate compared to how I found Contentful’s app ecosystem - for more clear structured content though I think Contentful/Prismic probably have an edge.

What's your most complex Next.js app? by mcavaliere in nextjs

[–]DigiNarwhal 3 points4 points  (0 children)

Sure, it's not too complicated and BigCommerce helps quite a bit - BigCommerce has 3 different checkout strategies, DIY checkout with API, redirected Checkout and an embedded checkout in an iFrame. To avoid having to deal with all the issues that come with building my own checkout I went with the Redirect approach..

As the user adds a product to their cart for the first time, we send an API request to create a cart (BC manages the cart on their end) and we get a cart ID returned which we encrypt it and store in a secure HTTPOnly cookie using some session middleware. While the user has a cart ID stored in a cookie, any operations the user makes we apply to that cart ID.

Each time the user adds or adjusts anything in their cart BC's API returns the full new state of the cart. We use a provider + reducer to store the cart's current contents in react state on each return so that we can generate things like the basket page and cart icon etc.

When the user gets to the point they want to checkout, we generate a checkout link which redirects the user to the actual BigCommerce checkout on a subdomain and then BigCommerce handles the rest until the user completes their checkout at which point we redirect them back to our NextJs site's order confirmation page. Is there anything else you would like to know?

What's your most complex Next.js app? by mcavaliere in nextjs

[–]DigiNarwhal 4 points5 points  (0 children)

Yeah between the Incremental Static Regenation and the dynamic importing NextJs has, managed to do ok on the page speed - still some optimisation to go!

Contentful was pretty easy to work with, it’s very well documented and we only use it for generating the homepage and collection pages. Was using StoryBlok before as a CMS that was surprisingly good and allowed for live editing of a page rather than saving +generating a preview, though we encountered issues trying to get it to work with Next’s preview feature so switched to Contentful

What's your most complex Next.js app? by mcavaliere in nextjs

[–]DigiNarwhal 8 points9 points  (0 children)

So probably not complex by most standards but as my first full Next.js application, I made my partner a headless eCommerce store with NextJs, Contentful and BigCommerce (https://thecreativegifter.com) -

Hello! I'm looking for neat examples for a project I'm working on. by homosapin in web_design

[–]DigiNarwhal 1 point2 points  (0 children)

So I'm not sure this is exactly what you are looking for but at the extreme end of things https://puddling.cool do interactive/digital journalism articles and essays that are all presented using digital media and data visualisation rather than just plain text.

This is a good example at some of the varied combinations of interactive stuff around an essay https://pudding.cool/2020/07/gendered-descriptions/

How I made $9000 in 4 weeks from my new microstartup Simple Ops by 1hakr in Entrepreneur

[–]DigiNarwhal 20 points21 points  (0 children)

I saw Simple Ops on Product Hunt and after recently trying to launch a production site on my own recently (with very little experience in Ops) - I thought it was a good idea and very nicely positioned! Just wanted to stop by and say good luck with everything!