Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

133
Views
Start the ReactJS App without port

I am working on ReactJS application using create-react-app.

The npm start and npm run build application is working fine, The application is running in a port number like 4000 or pushstate-server build in the port 9000, The problem is that I need to run the build application without port number in a public url like http://sample/home/ , when I browse directly the build/index.html it is showing the home page correctly but the routings is not working as like in port,All of the css and assets are showing not found.

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Change the port to 80.

This is the default value for HTTP requests, so, when you try to access
www.google.com
in fact you are accessing
www.google.com:80

over 4 years ago · Santiago Trujillo Report

0

You have to serve your app with a webserver instead of Webpack Dev Server, which is a dev tool which is not made for production.

Checkout my answer here for more information: How can I serve a reactjs app through https?

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!