Skip to content

Commit 2711341

Browse files
committed
Update docs for 'includeFiles'
1 parent 63468ec commit 2711341

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ Therefore we're using a separate org admin token to verify membership during log
5252
"routes": [{ "src": "/(.*)", "dest": "/api/index.ts" }],
5353
"functions": {
5454
"api/index.ts": {
55-
"includeFiles": "**"
55+
"includeFiles": "static/**"
5656
}
5757
}
5858
}
5959
```
6060

6161
This routes all traffic through the lambda endpoint.
6262

63-
Note that we also include all repo files in the lambda build. This is required because the static website needs to be deployed as part of the lambda function, not the default build. See also the [function docs](https://vercel.com/docs/configuration?query=includeFiles#project/functions) and [limits](https://vercel.com/docs/platform/limits?query=includeFiles#serverless-function-size).
63+
Adapt `includeFiles` to your public output folder. Including these files is required because the static website needs to be deployed as part of the lambda function, not the default build. See also the [function docs](https://vercel.com/docs/configuration?query=includeFiles#project/functions) and [limits](https://vercel.com/docs/platform/limits?query=includeFiles#serverless-function-size).
6464

6565
### Step 4 — Build
6666

0 commit comments

Comments
 (0)