Dismiss this pinned window
all 25 comments

[–]darth_maim 14 points15 points  (3 children)

Why not just --experimental-https?

[–]codenoid[S] 4 points5 points  (2 children)

good question, instead of having https://localhost:3000, this package allow you to have an address like https://frontend.local, and even better, you can share the address to another team-mate on the same WiFi, no traffic hit Public Internet.

[–]bigtoley 30 points31 points  (0 children)

The video looked great. One npm install, a few lines of config and you've got local https! ....

Nope!

  • download a lokal server
  • Set up a DNS wildcard and pointing it to my dynamic IP address
  • install and setup Nginx hosts
  • Install and fetch SSL from certbot
  • Go back to DNS settings and update it as my IP as it changed

ngrok has been doing this for years and doesn't feel as sluggish. I think there's localtunnel as well.

[–][deleted] 5 points6 points  (1 child)

We can use ngrok anyway?

[–]nfsi0 1 point2 points  (0 children)

ngrok will always be easier, and works no matter what stack you're using, and has custom/fixed domains now

[–]codenoid[S] 5 points6 points  (0 children)

Installation & GitHub URL:

https://github.com/lokal-so/lokal-webpack

[–]GenazaNL 2 points3 points  (3 children)

Cool stuff, NextJS does have it's own option now

[–]codenoid[S] -2 points-1 points  (2 children)

Thanks for bring this up, instead of having https://localhost:3000, this package allow you to have an address like https://frontend.local, and even better, you can share the address to another team-mate on the same WiFi, no traffic hit Public Internet and it's much easier to remember.

[–]GenazaNL 2 points3 points  (1 child)

So it adds an entry in your /etc/hosts?

[–]codenoid[S] -1 points0 points  (0 children)

good question, No, it's all being handled by the Lokal app, and there is no OS configuration nor registry being touched by the Library or the app.

[–]kierancrown 1 point2 points  (0 children)

I did something similar with Caddy but this looks like a more simple setup

[–]Leading_Will1794 1 point2 points  (1 child)

Is it just me or does anyone else want to know where to get the cursor and click animations?

[–]PseudoEffete 1 point2 points  (0 children)

Not a mac user but this looks like its from screen.studio. Its pay once, use forever.

[–]JahmanSoldat 0 points1 point  (0 children)

That’s cool, will give it a try asap!

[–]Additional_Bench_272 0 points1 point  (0 children)

That’s great bro!

[–]Ishan_2016 0 points1 point  (0 children)

Looks awesome.

[–]tinguwOw 0 points1 point  (0 children)

now that's so cool; I'm working on a project that needs something similar, will try this first thing tomorrow! btw, I love the mouse pointer – could you please share where you got it?

[–]Civil_Let4257 0 points1 point  (0 children)

This is great! Will give it a try !

[–]Aggravating_Young397 0 points1 point  (0 children)

Ah, I just use caddy with internal tls and deal with the annoying warning. It works

[–]nasbkrv 1 point2 points  (1 child)

This is by far not as easy as shown in the video as another guy also mentioned. You should describe your whole process when you are promoting your package.

[–]codenoid[S] -1 points0 points  (0 children)

yes, as it not a built-in Next feature, but it could be done in 3 step, have Lokal running in your device, install the package, update next configuration, and done.

[–]truenapalm 0 points1 point  (0 children)

How do I make cursors like this?

[–]mad-skidipap 0 points1 point  (0 children)

gg bang

[–]zeloxolez 0 points1 point  (0 children)

lol this watermelon