Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8cda51d

Browse files
Merge pull request #17 from codingforentrepreneurs/dev
Automated PR from Dev Stage
2 parents 6353ba8 + 74c721d commit 8cda51d

File tree

5 files changed

+13
-0
lines changed

5 files changed

+13
-0
lines changed

‎api/index.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { app } from '../src/index'
2+
3+
export default app

‎public/.gitkeep‎

Whitespace-only changes.

‎public/index.html‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<h1>Hello World</h1>

‎src/index.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,5 @@ app.use((req, res, next) => {
6767
// console.log("running at http://localhost:3000")
6868
// })
6969

70+
module.exports.app = app
7071
module.exports.handler = serverless(app);

‎vercel.json‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"rewrites": [
3+
{
4+
"source": "/api(.*)",
5+
"destination": "/api"
6+
}
7+
]
8+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /