Skip to content

Commit

Permalink
Fix express error
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgeny Talagaev committed Oct 16, 2023
1 parent 2894832 commit d62cfff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ app.use(cors());
app.use(express.static('build'));

app.get('*', (req, res) => {
console.log(req);
res.sendFile(path.join(__dirname, 'build/index.html'))
})

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"esModuleInterop": true,
"noEmit": true,
"noUnusedLocals": true,
"noUnusedParameters": false,
"noUnusedParameters": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"skipLibCheck": true,
Expand Down

0 comments on commit d62cfff

Please sign in to comment.