0

Apparantly it takes 30 seconds to deploy a react app on netlify!

https://www.netlify.com/blog/2016/07/22/deploy-react-apps-in-less-than-30-seconds/

I have followed exactly the following steps :

create-react-app hello-world2
cd hello-world2
npm run build

npm install netlify-cli -g
netlify deploy

The CLI then gives me a bunch of options. I selected the "." for publish directory. Is that right?

This is what is in my console :

enter image description here

I then go to :

https://5ed0fcc54e316210489aa68c--hellowworld2.netlify.app/

and I get :

enter image description here

How is this possible if I am following the steps exactly?

1
  • So sorry. Just realised i did not read correctly. You have to specify "./build" when deploying. I will leave this question up incase anyone is as blind as me. Commented May 29, 2020 at 12:29

1 Answer 1

1

Create-React-App will build your app into production files that it places in the ./build folder - see docs here.

You need to tell Netlify to look in there, so set publish directory to build.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.