Theme not loaded - Deployment on Vercel or AWS
Posted: 19 May 2021, 18:33
Hello,
I tried to deploy the template on Vercel and AWS Amplify. The deployment goes well but when I open the site, CSS styles (from public folder) do not load.
When I check the Network tab of Chrome, I see that following files are not loaded:
* /assets/theme/blue/theme-light.css
* /assets/layout/css/layout-light.css
The response for each of these requests corresponds to the content of /index.html
On local deployment (npm run build && server -s build), all is working fine.
For css imported in App.js, no problem at all.
Is there something that I need to do in order to make these theme to work ?
Like do not leave theme.css in public folder but move them to src and import them in App.js ?
Thanks in advance for your help,
Anthony.
I tried to deploy the template on Vercel and AWS Amplify. The deployment goes well but when I open the site, CSS styles (from public folder) do not load.
When I check the Network tab of Chrome, I see that following files are not loaded:
* /assets/theme/blue/theme-light.css
* /assets/layout/css/layout-light.css
The response for each of these requests corresponds to the content of /index.html
On local deployment (npm run build && server -s build), all is working fine.
For css imported in App.js, no problem at all.
Is there something that I need to do in order to make these theme to work ?
Like do not leave theme.css in public folder but move them to src and import them in App.js ?
Thanks in advance for your help,
Anthony.