TG Telegram Group & Channel
Python Daily | United States America (US)
Create: Update:

Anyone use django-vite? Trying to figure out best approach to SEO

Building a website for a company I’m starting with some others. I chose the stack of django REST server using DRF and a React SPA frontend with Vite. Everything is working great but we recently were talking SEO (and meta data) and realized my stack choice isn’t the best but I’m essentially done with the mvp and want to see if I can figure out a solution without having to rip out too much. Already debating moving everything to Nextjs since I’m a big React person.

I know Google and others can scrape JavaScript now but I also know that SSR is a faster delivery for better SEO scores and also metadata (like sending a link on a social media and preloading info about it) is very important.

I stumbled upon a supported package called django-vite which seems to bring Vite into django and handle the webpack stuff. I’m assuming this will do the SSR of my application with Vite/react and I can then just ditch my hosted SPA or would I just be doing the same thing but extra steps?

Does anyone else have any tips on how to best handle my situation?

Reason I went with django instead of

/r/django
https://redd.it/1c6skwc

Anyone use django-vite? Trying to figure out best approach to SEO

Building a website for a company I’m starting with some others. I chose the stack of django REST server using DRF and a React SPA frontend with Vite. Everything is working great but we recently were talking SEO (and meta data) and realized my stack choice isn’t the best but I’m essentially done with the mvp and want to see if I can figure out a solution without having to rip out too much. Already debating moving everything to Nextjs since I’m a big React person.

I know Google and others can scrape JavaScript now but I also know that SSR is a faster delivery for better SEO scores and also metadata (like sending a link on a social media and preloading info about it) is very important.

I stumbled upon a supported package called django-vite which seems to bring Vite into django and handle the webpack stuff. I’m assuming this will do the SSR of my application with Vite/react and I can then just ditch my hosted SPA or would I just be doing the same thing but extra steps?

Does anyone else have any tips on how to best handle my situation?

Reason I went with django instead of

/r/django
https://redd.it/1c6skwc


>>Click here to continue<<

Python Daily






Share with your best friend
VIEW MORE

United States America Popular Telegram Group (US)