Next.JS optimizations
Answered
West African Crocodile posted this in #help-forum
West African CrocodileOP
Can Next.js optimizations like <Image>, next/fonts, and lazy loading with next/dynamic be used outside of Vercel? For example, if I deploy my Next.js application on Azure, will I still benefit from these optimizations?
Answered by James4u
Yeah, I think so.
You will just lose Vercel-only features when you deploy on non-vercel
You will just lose Vercel-only features when you deploy on non-vercel
11 Replies
@West African Crocodile Can Next.js optimizations like <Image>, next/fonts, and lazy loading with next/dynamic be used outside of Vercel? For example, if I deploy my Next.js application on Azure, will I still benefit from these optimizations?
yes, you can even host it on your machine and it works fine
Yeah, I think so.
You will just lose Vercel-only features when you deploy on non-vercel
You will just lose Vercel-only features when you deploy on non-vercel
Answer
@James4u Yeah, I think so.
You will just lose Vercel-only features when you deploy on non-vercel
West African CrocodileOP
What are Vercel-only features?
@West African Crocodile What are Vercel-only features?
Serverless functions
Edge functions
and also Vercel provides more optimized infrastructure for ISR, Image optimization...
@James4u and also Vercel provides more optimized infrastructure for ISR, Image optimization...
vercel uses in the background mostly cloudflare. Serverless and edge functions are also supported on any machine
@B33fb0n3 vercel uses in the background mostly cloudflare. Serverless and edge functions are also supported on **any** machine
West African CrocodileOP
Does that mean everything in Next.js that works on Vercel can also be used on a non-Vercel platform like Azure?
@West African Crocodile Does that mean everything in Next.js that works on Vercel can also be used on a non-Vercel platform like Azure?
start your app on your desktop. Everything that works now, works everywhere else. Your machine isn't vercel
West African CrocodileOP
Ok Thank you for your time @B33fb0n3 @James4u