blk-design-system-react icon indicating copy to clipboard operation
blk-design-system-react copied to clipboard

build not being displayed while serving with nginx

Open gpulkitg opened this issue 6 years ago • 1 comments

I tried serving the build of the free version before purchasing the pro version.

npm start

runs fine and displays the website in the browser. However,

npm run build

followed by pointing the nginx server to the build folder does not work. A blank page is displayed. I checked nginx error logs and there are no errors.

I tried it with multiple node versions as well:

nvm ls
       v10.21.0
->     v12.18.1
        v14.4.0
         system

I repeated the above steps for a bootstrap app created using create-react-app and the app was correctly displayed by nginx server. I also repeated it with templates by other authors and it was working correctly. So there is no issue with nginx configuration.

Server configuration in nginx.conf:

server {

  listen 8080;

  include /usr/local/etc/nginx/mime.types;
  default_type application/octet-stream;

  root /Users/<username>/workspace/blk-design-system-react-master/build;
  index  index.html index.htm;

  location / {
    try_files $uri $uri/ /index.html;
  }

}

gpulkitg avatar Jun 19 '20 02:06 gpulkitg

@pulkit1991 this issue was automatically closed because it did not follow our rules:




IMPORTANT: Please use the following link to create a new issue:

https://www.creative-tim.com/new-issue/blk-design-system-react

**If your issue was not created using the app above, it will be closed immediately.**



Love Creative Tim? Do you need Angular, React, Vuejs or HTML? You can visit:
👉  https://www.creative-tim.com/bundles
👉  https://www.creative-tim.com


github-actions[bot] avatar Jun 19 '20 02:06 github-actions[bot]