简体   繁体   中英

When trying to add hompage to package.json and run npm run build, it shows /

I am stuck! I have been looking on google and can't find the answer... Hope someone ran into this problem?

I added my domain to package.json

在此处输入图片说明

but when I npm run build, I get the "The project was built assuming it is hosted at /".

Am I doing something wrong? Has anyone run into this issue? :( It should say my domain but it doesn't...

Thank you all!

I figured it out! Thank you Bharat for pointing that out.

Create .env and add PUBLIC_URL=https://

Thank you!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM