The coolest Next.js feature I haven't used until now

  Рет қаралды 13,253

Web Dev Cody

Web Dev Cody

Ай бұрын

My Products
📖 ProjectPlannerAI: projectplannerai.com
🤖 IconGeneratorAI: icongeneratorai.com
📝 ThumbnailCritique: thumbnailcritique.com
Useful Links
💬 Discord: / discord
🔔 Newsletter: newsletter.webdevcody.com/
📁 GitHub: github.com/webdevcody
📺 Twitch: / webdevcody
🤖 Website: webdevcody.com
🐦 Twitter: / webdevcody

Пікірлер: 36
@fortunethedev
@fortunethedev Ай бұрын
I actually just used this rewrites feature over the weekend, to proxy requests to a Flask API I created in the /api folder. This is pretty sleek
@SteveMarty
@SteveMarty Ай бұрын
That looks pretty handy, is there a way to containerize that rewrites call so you still have your website's header on that page? Might be better if you can so that user doesn't have to use the back button before navigating to another page on your site.
@user-ik7rp8qz5g
@user-ik7rp8qz5g Ай бұрын
Vercel puts limit on how many rewrites are available in project, so have to check it first before deploying there. On the other hand, middleware rewrites are unlimited
@v.mokhun
@v.mokhun Ай бұрын
I learned about proxy in Next when i needed to fetch data from IGDB, found it pretty useful but I wonder what's up with all the security stuff
@blazi_0
@blazi_0 Ай бұрын
Can I use this for some kind of multi tenantcy app for my nextjs?
@Cyber-Bison
@Cyber-Bison 23 күн бұрын
This is dope, do you know if we can still keep our nav bar + footer and have the changelog act as a child component?
@whatgoglikeno6120
@whatgoglikeno6120 Ай бұрын
Are you sure the SEO juice lands on the intended domain? Also I had to do this, because I use a different backend on a different server. When doing normal requests I was losing 200ms on every single request to CORS / Preflight security stuff.
@WebDevCody
@WebDevCody Ай бұрын
I'm starting to reconsider this approach. It may be more secure to just provide users a template for the changelog and just hit a rest API for the changelog data. In order to get this rewrite setup, I had to setup a lot of cors rules on projectplannerai.com which feels a bit sketch. The rewrite is convenient, but if we expand outside of next.js for vite or remix, it's not going to work well.
@SeibertSwirl
@SeibertSwirl Ай бұрын
I finally made it first again 👸🏽 love ya! Great job!!!
@ahmadmuraish1144
@ahmadmuraish1144 Ай бұрын
mhmm, interesting. I hope this is in Nuxt as well.
@saidakhrarov5322
@saidakhrarov5322 Ай бұрын
Would a changelog really impact SEO? Isn't a changelog something that's hidden behind an online identity (IE User account)? How would a crawler index that page when it's only cached for that one user? (Hopefully)
@WebDevCody
@WebDevCody Ай бұрын
usually a changelog is public for anyone to view (including crawlers)
@oSpam
@oSpam Ай бұрын
I think they’re confused with what we mean by a changelog. In this case the changelog is of feature additions, bug fixes of the SOFTWARE. Something like an audit log tracks the individual user activities WITHIN the software. But the changelog showcased in the video is a log of changes made to the whole application, not individual users. So it’s meant to be public
@williamx0
@williamx0 Ай бұрын
Are you currently hosting your apps with SST, or Vercel or other?
@WebDevCody
@WebDevCody Ай бұрын
Railway for now
@williamx0
@williamx0 Ай бұрын
​@@WebDevCody Thanks for replying. Any reason you moved away from SST? They moved to Cloudflare to setup all the infra now and called it SST Ion. I liked the concept of SST so that I can take advantage of message queues and cron jobs easier. Without SST I'd probably be using Upstash but AWS for queues and events is cheaper. Curious why railway (esp since it doesn't scale to $0) and also any issues you had with SST?
@griffadev
@griffadev Ай бұрын
The next level down i suppose, and more complex, i guess is what theo has been talking about. Services hosting server component endpoints and hooking in that way
@AkashSingh-hs5sg
@AkashSingh-hs5sg Ай бұрын
Sure a handy one 😮
@Joseph-Codes
@Joseph-Codes 28 күн бұрын
How can I hook finances to my project that is already live? Is there an api documentation for that?
@WebDevCody
@WebDevCody 28 күн бұрын
There’s an integrations tab you can click to hook into stripe
@Joseph-Codes
@Joseph-Codes 27 күн бұрын
@@WebDevCody my project is a payment solution on its own and I don’t use stripe. I’m more interested in the management of finance and tasks part of project plannerai
@thejonte
@thejonte Ай бұрын
That just looks like a huge XSS risk.
@soumyamondal
@soumyamondal Ай бұрын
Please explain more
@Rust_Rust_Rust
@Rust_Rust_Rust Ай бұрын
Huge XSS risk ​@@soumyamondal
@thejonte
@thejonte Ай бұрын
@@soumyamondal Since we'd be proxying just any HTML sent by projectplanner, we're trusting them with script evaluation. Projectplanner could run JavaScript in the context of your site, reading your cookies and localStorage.
@buddy.abc123
@buddy.abc123 Ай бұрын
I used it to proxy /api to my Go api
@shakapaker
@shakapaker Ай бұрын
Same
@coffeeintocode
@coffeeintocode Ай бұрын
Yesssssss 🎉
@Boi-ud3dk
@Boi-ud3dk Ай бұрын
cool feature indeed
@darkdeathoriginal
@darkdeathoriginal Ай бұрын
can you change changelog page title to changelog other than the name of the site. This change would be very helpfull
@WebDevCody
@WebDevCody Ай бұрын
yeah I'll work on adding the ability to customize the page a bit soon
@MikeNugget
@MikeNugget Ай бұрын
Basically, it is called reverse proxy. But what about security, authentication, and API reverse engineering?
@WebDevCody
@WebDevCody Ай бұрын
I’ve decided to no longer use this approach. I’m concerned about secuirty so I instead just provide an api for the change logs and a component for the jsx
@danielmajer1648
@danielmajer1648 Ай бұрын
Rewrites is great until that url contains hardcoded URL redirects, like mine.org/lala instead of just /lala.
@me.abhishek
@me.abhishek Ай бұрын
😅 hacker looking forward
@WebDevCody
@WebDevCody Ай бұрын
And what exploit are you referring to?
Next.js 13 - The Basics
9:00
Beyond Fireship
Рет қаралды 608 М.
Stop Using the Worst Way to Loop Lists in .NET!
9:35
Nick Chapsas
Рет қаралды 43 М.
КАК СПРЯТАТЬ КОНФЕТЫ
00:59
123 GO! Shorts Russian
Рет қаралды 2,6 МЛН
100❤️
00:19
Nonomen ノノメン
Рет қаралды 37 МЛН
Trágico final :(
01:00
Juan De Dios Pantoja
Рет қаралды 33 МЛН
Is This the Ultimate Study Book? Recommended by OXFORD UNIVERSITY!
7:41
Python Programmer
Рет қаралды 10 М.
What does my typical work week as a web dev like
26:43
Web Dev Cody
Рет қаралды 168 М.
10 common mistakes with the Next.js App Router
20:37
Vercel
Рет қаралды 174 М.
7 React Lessons I Wish I Knew Earlier
7:30
Code Bootcamp
Рет қаралды 48 М.
Vercel Gave Up On Edge
17:50
Theo - t3․gg
Рет қаралды 96 М.
React Native Bridgeless Mode for Dummies
6:43
Oscar Franco
Рет қаралды 3,3 М.
Solid Programming - No Thanks
32:00
ThePrimeTime
Рет қаралды 221 М.
Pretty much every website uses the wrong font size…
15:33
Theo - t3․gg
Рет қаралды 61 М.
Why prisma calls directly in Next is a MISTAKE
7:51
Web Dev Cody
Рет қаралды 14 М.
Zed “kills” VSCode
12:10
Alex Ziskind
Рет қаралды 509 М.
КАК СПРЯТАТЬ КОНФЕТЫ
00:59
123 GO! Shorts Russian
Рет қаралды 2,6 МЛН