Reputation: 871
I want to set up a web application which in backend uses django and in front end uses solidjs. In the development phase how do I integrate solidjs into django?
I have a directory called project which contains directory called:
Upvotes: 1
Views: 666
Reputation: 13698
During development phase you can create a proxy config in your vite configuration file that makes API call to your django server:
https://vitejs.dev/config/server-options.html#server-proxy
For production, link the js file that has your solid app in your html file or html template you return from your server.
Upvotes: 2