File tree Expand file tree Collapse file tree 3 files changed +30
-2
lines changed
Expand file tree Collapse file tree 3 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "rewrites" : [
3+ {
4+ "source" : " /(.*)" ,
5+ "destination" : " /index.html"
6+ }
7+ ]
8+ }
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ require('dotenv').config();
44
55const app = express ( ) ;
66
7- app . use ( cors ( ) ) ;
7+ app . use ( cors ( ) ) ;
88app . use ( express . json ( ) ) ;
99
1010app . get ( '/' , ( req , res ) => {
11- res . send ( 'API is running...' ) ;
11+ res . send ( 'API is running...' ) ;
1212} ) ;
1313
1414const authRoutes = require ( './routes/authRoutes' ) ;
Original file line number Diff line number Diff line change 1+ {
2+ "installCommand" : " npm install --legacy-peer-deps" ,
3+ "version" : 2 ,
4+ "builds" : [
5+ {
6+ "src" : " index.js" ,
7+ "use" : " @vercel/node"
8+ },
9+ {
10+ "src" : " src/**/*" ,
11+ "use" : " @vercel/static"
12+ }
13+ ],
14+ "routes" : [
15+ {
16+ "src" : " /(.*)" ,
17+ "dest" : " /"
18+ }
19+ ]
20+ }
You can’t perform that action at this time.
0 commit comments