DEV Community

Discussion on: My Portfolio Made With ReactJS

Collapse
 
maulanarifai114 profile image
Raden Maulana Rifa'i Abdullah

image

you should hide the "/dist" route

Collapse
 
princejaiswal profile image
Prince Jaiswal

why ? And How To Do It ?

Collapse
 
maulanarifai114 profile image
Raden Maulana Rifa'i Abdullah • Edited
  1. Choose your sites

  2. Go to site settings
    image

  3. Go to build & deploy (sidebar)
    image

  4. Set publish directory to "dist/"
    image

You can set like mine

Why? because it looks more professional than showing the "dist" folder.

Next, you have to add the file "_redirects" in the root folder so that when refreshed it doesn't happen "Page not found".

maybe you can see the detailed explanation here
dev.to/rajeshroyal/page-not-found-...

but i like your website, more animation, its wonderful

Thread Thread
 
princejaiswal profile image
Prince Jaiswal

Thanks For Helping

Thread Thread
 
maulanarifai114 profile image
Raden Maulana Rifa'i Abdullah

Your welcome, let me know once done

Thread Thread
 
princejaiswal profile image
Prince Jaiswal • Edited

Not Working

This Is Coming When I Add dist/

Thread Thread
 
maulanarifai114 profile image
Raden Maulana Rifa'i Abdullah • Edited

I'm looking your repos, this is bad idea when you just upload the built source, you have to upload whole source, except "node_modules" and "build" folder, let netlify build in their server.

You can check mine github.com/maulanarifai114/templat...

  1. First add new site from existing project
    image

  2. Let netlify get authentication from your github

  3. Choose the repo
    image

  4. You can deploy your site, just waiting for build (mine use yarn, you can use npm)
    image

Thread Thread
 
princejaiswal profile image
Prince Jaiswal

yes , i done all your steps