Who uses SMS OTP ?

OTPs frequently have something to do with the banking and financial services industries. OTPs are used as a way of user authentication prior to any transaction. However, OTPs can also be applied in…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Creating a production Build in React

I worked on my first react project about a month ago. I had been actively learning react for about a month before the project. On getting a project to work on, I was encouraged to put my learning into the project.

I have learnt a whole lot on react, JSX and JavaScript with this project and I am still learning. After I was done with the project, I had to Google how to create a production build that will be served on GoDaddy. Everything was running smoothly until I encountered some issues concerning the home page link.

I will put out the steps I followed and how I fixed the issue I encountered.

Setting the homepage in the package.json of your react-app.

Step 1: Open package.json of your react-app
Step 2: Add “homepage”: “http://www.mywebsitelink.com” after the version of your app.
Step 3: Run npm run build or yarn build if you are using yarn on your project.

A build file was generated after running that command and homepage link was something like this http//www.mywebsitelink.com from the command line.

Here is the fix:

If you did not encounter any issue like I did, you are good to go as well.
Thank you all for reading. Happy Coding!

Add a comment

Related posts:

Voice Foundation Child Africa

We promote a better start to life to build a strong foundation for children that will in turn impact on their future positively. Education instigates better thinkers. We work to ensure equality. We…

Representation Matters

Sudah lama tidak menulis di Medium, kali ini ingin membahas sesuatu yang lebih serius (bukan berarti perkara cinta tidak cukup serius), yaitu mengenai representasi. ‘Representation’ secara harfiah…

Find out the advantages of eliminating passwords for your users and business.

The digital world is changing. Nowadays, whenever you use a new device or app, it demands password authentication to verify a user’s identity. It makes people feel more deprived. In fact, password…