You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { ConnectedRouter } from 'connected-react-router';
import store, { history } from './store';
import App from './containers/app';
import './index.css';
The text was updated successfully, but these errors were encountered:
archienorman11
changed the title
Deploying after build with nginx
Deploying to production with nginx
Aug 14, 2018
Hi - I am unable to deploy my react application to production.
I can run the app locally with no problems. I then run:
npm run build
Push the bundled code to my server and configure nginx
I can see the plaintext in my browser when I run the application (via docker), the static files load, but they do not render correctly.
Here is an example of an image import:
<img class="waiting_icon" src="./static/media/waiting.da817564.svg" alt="logo">
Nothing shows, same with
css
styling.Any suggestions - thanks.
Update:
I am importing the css in
/src/index.js
like so:The text was updated successfully, but these errors were encountered: