0
I am creating a page for myself. I installed Nginx and directed the index.html
for my React project.
But when you go to the page it’s blank (Shouldn’t). Nginx and React are working because the page title is written React App
, and if I access the font code of the page everything will be there. However when accessing the code of the page I come across this:
<script src="/vncsms/MySiteReact/static/js/main.3702ad6a.chunk.js">
On my server there is a folder on the root called MySiteReact
. the path of this file is in ~/MySiteReact/build/static/js
. And I don’t understand why my site is taking this path to this archive. the way vncsms
is my nick on github, where the repository is. The question I don’t understand is why React directed my files with my github nick.
My React Packge.json:
{
"name": "mysite",
"version": "0.1.0",
"private": true,
"dependencies": {
"react": "^16.8.3",
"react-dom": "^16.8.3",
"react-router-dom": "^4.3.1",
"react-scripts": "2.1.5",
"styled-components": "^4.1.3"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
],
"main": "index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/vncsms/MySiteReact.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/vncsms/MySiteReact/issues"
},
"homepage": "https://github.com/vncsms/MySiteReact#readme",
"description": ""
}
*The Repository is private.
How did you do the build of its application ?
– Caio Felipe Pereira