-
| 
         Hi @Can-Sahin. Can you throw some light on why the do you add process.env.PUBLIC_URL when forming router links or asset urls? Relative paths e.g. '/applications' or '/assets/images/abc.png' will work just as well even when deployed right ?  | 
  
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            Can-Sahin
          
      
      
        Apr 14, 2022 
      
    
    Replies: 1 comment 1 reply
-
| 
         Yes, it's not needed normally but I host the example application on GitHub pages as well. Check the npm script. Otherwise the links don't work. 
  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
      Answer selected by
        vmundhra
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Yes, it's not needed normally but I host the example application on GitHub pages as well. Check the npm script. Otherwise the links don't work.
"publish:github": "cross-env PUBLIC_URL='/react-boilerplate-cra-template' yarn build && gh-pages -d build",