Skip to content

Commit a2f941a

Browse files
Update express example to for zero config (#1209)
### Description - Remove vercel.json and rewrite - use `src/index.ts` ### Demo URL <!-- Provide a URL to a live deployment where we can test your PR. If a demo isn't possible feel free to omit this section. --> ### Type of Change - [ ] New Example - [ ] Example updates (Bug fixes, new features, etc.) - [ ] Other (changes to the codebase, but not to examples) ### New Example Checklist - [ ] 🛫 `npm run new-example` was used to create the example - [ ] 📚 The template wasn't used but I carefuly read the [Adding a new example](https://github.com/vercel/examples#adding-a-new-example) steps and implemented them in the example - [ ] 📱 Is it responsive? Are mobile and tablets considered? --------- Co-authored-by: Anthony Shew <[email protected]>
1 parent b57874d commit a2f941a

File tree

6 files changed

+715
-39
lines changed

6 files changed

+715
-39
lines changed

solutions/express/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Express.js on Vercel
22

3-
Simple Express.js + Vercel example that serves html content, JSON data and simulates an api route.
3+
Basic Express.js + Vercel example that serves html content, JSON data and simulates an api route.
44

55
## How to Use
66

@@ -28,4 +28,4 @@ Then run the app at the root of the repository:
2828

2929
```bash
3030
vercel dev
31-
```
31+
```

solutions/express/package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
2-
"name": "express",
3-
"version": "1.0.0",
4-
"description": "",
5-
"main": "index.ts",
6-
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1",
8-
"start": "node api/index.ts"
9-
},
10-
"keywords": [],
11-
"author": "",
12-
"license": "ISC",
13-
"dependencies": {
14-
"express": "^4.18.2"
15-
}
2+
"name": "express",
3+
"version": "1.0.0",
4+
"description": "",
5+
"type": "module",
6+
"keywords": [],
7+
"author": "",
8+
"license": "ISC",
9+
"dependencies": {
10+
"@types/express": "^5.0.0",
11+
"express": "^4.18.2"
12+
},
13+
"devDependencies": {
14+
"@types/node": "^22.0.0"
15+
}
1616
}

0 commit comments

Comments
 (0)