Skip to content

Commit

Permalink
Merge branch 'vercel'
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Dorman committed Aug 15, 2024
2 parents 0537c07 + dd360d3 commit dec5012
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,5 @@ tmp/
temp/

# pm2 config files
ecosystem.config.js
ecosystem.config.js
.vercel
2 changes: 1 addition & 1 deletion server/bin/www
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Module dependencies.
*/

var app = require('../app');
var app = require('../index');
var debug = require('debug')('server:server');
var http = require('http');

Expand Down
2 changes: 1 addition & 1 deletion server/app.js → server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ app.use('/auth', authRouter);
app.listen(port, () => {
console.log(`Server is running on port ${port}`);
});

module.exports = app;
1 change: 1 addition & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "version": 2, "rewrites": [{ "source": "/(.*)", "destination": "/server" }] }

0 comments on commit dec5012

Please sign in to comment.