Watch a live product demo 👀 See how Sanity powers richer commerce experiences

Are there any Next.js Functionality Limitations when Deploying Next.js to Netlify?

22 replies
Last updated: Jun 14, 2021
Those of you that deploy Next to Netlify, are there any limitations to Next functionality or do they support it all by now?
Jun 14, 2021, 2:36 AM
Jun 14, 2021, 7:50 AM
Nice that sounds great! I’ve been a Netlify user for ages but switched to Vercel since they didn’t fully support Next back then. But I have to say I’ve missed it. Vercel is alright, but imo Netlify takes the price.
Jun 14, 2021, 7:54 AM
What is it you prefer with Netlify? I've kinda gone the other way and preferring Vercel 😄
Jun 14, 2021, 7:55 AM
😂 I don’t know, maybe I just find things easier in there. Could be habit. I played around with creating a team in Vercel, but it refuses to build if a non-team member pushes to one of the repos, essentially forcing an upgrade for another $20/m for each person that might contribute a line of code.
I don’t know if Netlify does the same, I haven’t managed teams there.

Another thing is the build/deploy hook trigger. With Vercel you have to create a token which gives full access to every project. Seems like a big security oversight when all you want to do is set up a deploy trigger in Sanity dashboard.
Jun 14, 2021, 7:58 AM
New members are paid in Netlify as well. I think it's $19/month.
Jun 14, 2021, 11:24 AM
Yeah, $19/m is what I saw as well. But does that mean if you have someone who’s not a team member commit to the repo Netlify will refuse to build?
Jun 14, 2021, 11:25 AM
I always used to think the team member thing was just about who needs to have access to vercel/netlify
Jun 14, 2021, 11:25 AM
I needed to actually give someone access to Netlify. Not sure how it works with builds.
Jun 14, 2021, 11:27 AM
ok, because I actually don’t want to give them access to vercel 😅 but I still want their commits to build
Jun 14, 2021, 11:27 AM
We use netlify, I only have one or two accounts set up for management reasons, the rest is via github
Jun 14, 2021, 1:07 PM
And there’s no issue with deploy when any non-netlify user pushes to the repo?
Jun 14, 2021, 1:08 PM
actually a good question but I honestly can’t imagine why they would do that, it’s a counter-productive security stance to make anyone who writes code be able to mess around with the CI stuff
Jun 14, 2021, 1:11 PM
seems like it’s all jsut github events to me
Jun 14, 2021, 1:11 PM
yeah, that’s what I remembered as well from back when I used Netlify. But we had small teams so I’m not 100% on that. Vercel does it that way and it really baffled me. I guess they want the $$$
Jun 14, 2021, 1:12 PM
backing up to the main question, it does seem to me like everything is fully supported now, we get functions deployed for ISR paths. They’re very actively developing the modern plugin for this too
Jun 14, 2021, 1:13 PM
yeah netlify charges me handily for all the excess build minutes and things too 😄 (trying to eliminate a lot of that with nextjs features)
Jun 14, 2021, 1:13 PM
That’s awesome! Do you have a good resource for setting up a Next project in Netlify?
Jun 14, 2021, 1:14 PM
I think netlify installs a nextjs essentials plugin automatically if it detects nextjs is being uses in the repo
Jun 14, 2021, 1:15 PM
I can accept paying for build minutes, it’s genuine usage. But yes, I do remember that cost. We had a Gatsby+Shopify site with 20k skus :mindblown:
Jun 14, 2021, 1:15 PM
Sweet! That’s amazing!
Jun 14, 2021, 1:17 PM
yeah we were running into issues with build pipelines timing out, and the problem only gets worse as time goes on, so next fixes much of that. And yes teh plugin is automatically installed (I’m moving over in a branch so had to include it manually while we’re co-deploying via gatsby and next right now. I don’t have any great references but one gotcha was that
are not present at all in a
build (I think I have that right). Was a bit confusing for me at first
Jun 14, 2021, 1:34 PM – build remarkable experiences at scale

Sanity is a customizable solution that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Related answers

Get more help in the community Slack

TopicCategoriesFeaturedRepliesLast Updated
After adding the subtitle and running this code npm run graphql-deploy It does nothingSep 15, 2020
how to limit a reference to just one entry in Studio reference input side versus the default as-many-entries-as-you-fill-in-an-array...Sep 18, 2020
Is it possible to fetch more than one "_type" using GROQ?Nov 2, 2020
I want to add a view with the Structure builder (S.view.component) where I list similar documents based on the title. What...Sep 23, 2020
Is there a structure builder example where the format of each preview for the document list is modified?Feb 3, 2021
I have an array of references to a country schema type but it always just returns NULL values for meJan 30, 2021
Hi, I need help with a query for getting the url of an image asset. Here is what I've been trying, but I only get the _ref...Dec 1, 2020
Sanity UI looks brilliant :smiley: Is something like the current date picker possible at the moment? I’m not sure if anicon...Dec 21, 2020
Hey everyone. I have been coding and may have potentially accidentally deleted something. Does anyone know how to resolve...Dec 26, 2020
Hello everyone and happy new year :raised_hands::skin-tone-2:, I have a problem with outputting Portable Text :disappointed:...Jan 1, 2021

Related contributions

Clean Next.js + Sanity app
- Template

Official(made by Sanity team)

A clean example of Next.js with embedded Sanity ready for recomposition.

Cody Olsen
Go to Clean Next.js + Sanity app

Blog with Built-in Content Editing
- Template

Official(made by Sanity team)

A Sanity-powered blog with built-in content editing and instant previews.

Go to Blog with Built-in Content Editing