This repository contains a production-ready boilerplate for a Django-Next.js hybrid project, specifically for use with Railway.
git clone https://github.com/sebherrerabe/django-nextjs-prod.git
.env
file in the following way:
ARG RAILWAY_STATIC_URL
ARG DJANGO_DEBUG
ARG DJANGO_SECRET_KEY
RUN mkdir -p /usr/src/app
RUN echo "RAILWAY_STATIC_URL=$RAILWAY_STATIC_URL\nDJANGO_DEBUG=$DJANGO_DEBUG\nDJANGO_SECRET_KEY=$DJANGO_SECRET_KEY" >> /usr/src/app/.env
## Additional Resources
- [Django documentation](https://docs.djangoproject.com/)
- [Next.js documentation](https://nextjs.org/docs)
- [django-nextjs documentation](https://github.com/QueraTeam/django-nextjs)
- [Railway](https://www.railway.com/)