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

135
Views
Cannot get/ heroku

Home

I uploaded my project to heroku and at first it seemed like everything worked out, the home page loads normal but when I try to access the following pages it just gives me a Cannot get/

/alunos

const Routes: React.FC = () => {
    return(
        <Switch>
            <Route path='/' exact component={Home} />
            <Route path='/alunos' exact component={Alunos} />
            <Route path='/cadastro_aluno' exact component={AlunosForm} />
            <Route path='/tarefas_cadastro/:id' exact component={AlunosForm} />
            <Route path='/alunos/:id' exact component={AlunosDetail} />
            <Route path='/loc' exact component={AlunosLoc} />
        </Switch>
    );
}

export default Routes;

server.js

const express = require('express')
const app = express()
const PORT = process.env.PORT || 3102
 
app.use(express.static('build'))
app.listen(PORT, () => console.log('Servidor Front em execução!'))

f12

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

<Navbar.Brand href="/">Home</Navbar.Brand>
    <Navbar.Toggle aria-controls="responsive-navbar-nav" />
    <Navbar.Collapse id="responsive-navbar-nav">
      <Nav className="me-auto">
        <Nav.Link as = {Link} to="/alunos">Alunos</Nav.Link>          
        <NavDropdown title="Mais" id="collasible-nav-dropdown">

I made some changes to the header, added the import Link and made the links for it ( as = {Link}), thanks everyone for the help

about 4 years ago · Juan Pablo Isaza 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!