QueraTeam / django-nextjs

Next.js integration for Django projects
MIT License
351 stars 18 forks source link

CSS/JS not loading in production #25

Closed lawrenceuchenye closed 1 year ago

lawrenceuchenye commented 1 year ago

Hi when running django in product the css/js doesn't load or show

lawrenceuchenye commented 1 year ago

One thing i noticed was that in development everything works well only the 404/500 page do not show due to DEBUG=True but when DEBUG=False it only loads the html with no css/js

danialkeimasi commented 1 year ago

Hi. This is typical Django behavior.

To serve static files in production, you can use a web server such as Nginx. For instructions related to Nextjs's static files, check out our README.md: Setup Next.js URLs (Production Environment).