Deploy Next Js on Cloudflare

Deploy Next Js on Cloudflare

Maghfoor

6 месяцев назад

17,359 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@naylord5
@naylord5 - 20.04.2024 01:14

Looks superb! Thank you so much for sharing master! 🔥
Could you please consider creating a CRUD with Next 14 and server actions?
And deploy it to Cloudflare, IDK if is neccesary to use Workers o something else?
I'm hesitating between having everything in a fullstack mono repo, or creating a backend with Hono.. Hopefully you can bring some light with this..
Thank you in advance mate!

Ответить
@SonAyoD
@SonAyoD - 20.04.2024 18:30

Is it cheaper?

Ответить
@kapatidkumusta
@kapatidkumusta - 21.04.2024 16:17

Have you tried making a Nextjs + Drizzle and cloudflare's database? I just wanted to know the setup required to do that.

Ответить
@jhoanmiguelescobararboleda8547
@jhoanmiguelescobararboleda8547 - 21.04.2024 21:33

nice video, you got s sub here!!
Plz make videos about deploys I love this

Ответить
@abrahamugbeshe1990
@abrahamugbeshe1990 - 22.04.2024 00:11

Wonderful video mate 👏, I have a video request to share with you. How best can I reach out to you?

Ответить
@BilalMansouridz
@BilalMansouridz - 22.04.2024 04:51

Thank you 🙏 Does the Cloudflare hosting setup you demonstrated support app API routes in Next.js , or is it just for static sites?

Ответить
@vogelcodes
@vogelcodes - 22.04.2024 06:24

I'll try that today. I've been using a VPS to host my Next pages (mostly landing pages to sell digital products) and using Cloudflare as DNS/Proxy. Do you know if the Free tier can be used to host commercial sites? Vercel doesn't allow it.

Ответить
@dinbandhusharma4568
@dinbandhusharma4568 - 22.04.2024 09:35

thanks for this amazing video
I used Versel and Netlify for deployment
but now I'm gonna use Cloudflare
you got the new sub 👍🏻

Ответить
@scotly_emi
@scotly_emi - 22.04.2024 10:47

Can you make an in depth tutorial on this topic because of some other issues like deploying a full stack project and also use next image please

Ответить
@mikhacavin
@mikhacavin - 22.04.2024 12:37

cloudflare support SSR and
RSC ?

Ответить
@harvey_04
@harvey_04 - 23.04.2024 12:47

can writing `export const runtime = "edge" ` on the layout page rather than in each page suffice?

Ответить
@후쿠쿠-x4n
@후쿠쿠-x4n - 24.04.2024 22:48

Thank you so very very much!!!

Ответить
@alexanderclay5847
@alexanderclay5847 - 25.04.2024 02:19

Love this! Please do more videos on cloud flare, trying to move of vercel due to pricing

Ответить
@Victor-dd7el
@Victor-dd7el - 25.04.2024 15:05

Make a video on how to use Image component in cloudflare for free, I mean how to serve the appropiate image

Ответить
@mel-182
@mel-182 - 29.04.2024 17:24

is this included in free tier?

Ответить
@neeshsamsi
@neeshsamsi - 30.04.2024 12:08

Does cloudflare pages support all features of Next? Because I recently ran a project on Netlify to try and move off Vercel and server actions didn't seem to be working

Ответить
@vaisakh_km
@vaisakh_km - 01.05.2024 05:07

Can we run other meta frameworks like sveltekit, nuxt, analog or like spring, ruby on railson rails etc.c

Ответить
@MuhammadIbrahim-ng8je
@MuhammadIbrahim-ng8je - 02.05.2024 14:14

Hey man thank you. Can you please implement it using a larger application. I have already deployed it but the results are not good. Some id/slug pages are either crashing or not navigating upon click. Also how to work with next API's.

Ответить
@raves_r3177
@raves_r3177 - 04.05.2024 12:31

Subbed! Please do cloudflare deploying full stack next js that uses Image component

Ответить
@fitimbytyci345
@fitimbytyci345 - 04.05.2024 20:39

There must be a catch right? if all NextJS features work as they should.

Didn’t Lee wrote a post on twitter that they stopped using edge on v0?

Ответить
@wilbertdune
@wilbertdune - 05.05.2024 14:22

it would great a side by side comparison, like what works, what doesn't work on nextjs with cloudflare. side by side comparison with Vercel.

Ответить
@Deus-lo-Vuilt
@Deus-lo-Vuilt - 06.05.2024 05:41

Love cloudflare and nextjs

Ответить
@agy112
@agy112 - 13.05.2024 04:35

Thank you, I really like your content. It would be interesting to benchmark Cloudflare vs Vercel vs VPS hosting

Ответить
@JackBrunsion
@JackBrunsion - 14.05.2024 23:40

does not npx directly run the comman on the fly? why do you need to install the package you are about to run with it as a dev dependency too? regardless good video, keep it up

Ответить
@SystemBee
@SystemBee - 16.05.2024 04:52

It worked perfectly with your help, thank you very much

Ответить
@ryankenzo9946
@ryankenzo9946 - 18.05.2024 12:50

can you make how to enbale or config cloudflare turnstile on next js project & if possible fullstack next js project on cloudflare

Ответить
@AbuAbdullah_IN
@AbuAbdullah_IN - 26.05.2024 09:24

This looks awesome. One common concern that I have heard with nextjs devs is the 10s timeout for severless functions. Will we be able to overcome the same when we deploy it on cloud flare? If yes, can u plz let us know how? Thanks in advance

Ответить
@csayantan
@csayantan - 29.05.2024 14:29

can you explain how I can deploy Angular 18 with ssr/ssg configured with xata for data retrival on Cloudflare pages ?

Ответить
@iPuppyTech
@iPuppyTech - 02.06.2024 08:01

Dude does it support ssr?

Ответить
@ashish99311
@ashish99311 - 02.06.2024 20:50

this package cloudflare/next-onpages will work with NUXT 3 pages and SSR of NUXT3?

Ответить
@codewrangler
@codewrangler - 05.06.2024 17:33

Thanks! Awesome video, I deploy most of my projects on vercel and pair it with cloudflare dns. Looking forward to trying this on my next project. Have you discovered any nextjs features that you lose by deploying to cloudflare?

Ответить
@claytonbennett7797
@claytonbennett7797 - 22.06.2024 06:22

I'm getting some deprecation warnings, such as:
npm warn deprecated [email protected]: Please upgrade to version 7 or higher

I just did a fresh node install following a fresh fnm install

Is this a cloudflare problem or a me problem?

Ответить
@mwolf84
@mwolf84 - 30.06.2024 00:35

Cloudflare is way faster than vercel. Saw a noticeable speed difference after switching.

Ответить
@samueldelmar5237
@samueldelmar5237 - 06.07.2024 10:09

excellent content bro, thanks

Ответить
@elvisc
@elvisc - 28.07.2024 09:47

Do they support api route handlers?

Ответить
@ElusiveProxy
@ElusiveProxy - 07.08.2024 19:37

Could you not just declare the edge runtime in root layout?

Ответить
@lx288
@lx288 - 11.08.2024 11:25

Thank you!

Ответить
@jagdish1o1
@jagdish1o1 - 12.08.2024 22:07

cloudflare is my ♥ and recently started developing apps with nextjs.

Seeing this, that nextjs can be deployed on cloudflare makes me love cloudflare even more. 🥰

Ответить
@sourmans
@sourmans - 21.08.2024 18:51

superb. In addition with cloudflare you get email routing so no need to mess around with main in a box or cpanel just setup cloudflare email routing toyu your personal gmail like a boss

Ответить
@ZekeLeom
@ZekeLeom - 25.08.2024 23:22

Thank you! This helped me setup my first page :) Liked and subbed!

Ответить
@RigobOP
@RigobOP - 15.09.2024 20:20

que locura, muchas gracias

Ответить
@Hasansaid51
@Hasansaid51 - 08.10.2024 08:26

in terms of env variables, how does cloudflare handle serverside env variables? will the app be able to pick it up once you configure them in cloudflare?

Ответить
@saitamasensi-c2d
@saitamasensi-c2d - 09.10.2024 14:02

I don't know what I have done wrong. I have followed all the steps mentioned in the video, but I am getting an error when I run the command "npm run pages:build".



> [email protected] pages:build
> npx @cloudflare/next-on-pages

⚡ @cloudflare/next-on-pages CLI v.1.13.5

⚡ Warning: It seems like you're on a Windows system, the Vercel CLI (run by @cloudflare/next-on-pages
⚡ to build your application) seems not to work reliably on Windows so if you experience issues during
⚡ the build process please try switching to a different operating system or running
⚡ @cloudflare/next-on-pages under the Windows Subsystem for Linux

EXIT WHEN NOT EXPECTED

SHELLAC COMMAND FAILED!
STDOUT:



STDERR:



⚡ Unexpected error: {"cmd":"npm --version","stdout":"","stderr":""}



I've been trying to work with Linux WSL and I added two files: "wrangler.toml" and I edited ".eslintrc.json" based on the documentation from Cloudflare. Still same error.


I've been facing errors for the past two days and I'm still unable to solve them. I'm reaching out here for some help.

Ответить
@segunolumbe6128
@segunolumbe6128 - 13.10.2024 09:04

Nice one..SImple and clear video.....
Q: Is there a easy way to add `export const runtime = "edge";` if one has plenty pages?

Ответить
@maik_el_blue
@maik_el_blue - 30.10.2024 16:43

desde windows me sale error: throw er; // Unhandled 'error' event
^

Error: spawn npx ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:286:19)
at onErrorNT (node:internal/child_process:484:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on ChildProcess instance at:
at ChildProcess._handle.onexit (node:internal/child_process:292:12)
at onErrorNT (node:internal/child_process:484:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -4058,
code: 'ENOENT',
syscall: 'spawn npx',
path: 'npx',
spawnargs: [ 'vercel', 'build' ]
}

Ответить
@rohil3023
@rohil3023 - 30.10.2024 22:17

Super helpful. Thank you!!

Ответить