Skip to content

Commit cb44e65

Browse files
committed
Merge branch 'master' into enable_multi_star_for_private_vercel
2 parents fc5fa79 + 166972d commit cb44e65

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

readme.md

+4
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ Visit <https://indiafightscorona.giveindia.org> and make a small donation to hel
9494
- [Wakatime Card Exclusive Option](#wakatime-card-exclusive-options)
9595
- [Deploy Yourself](#deploy-on-your-own-vercel-instance)
9696
- [Disable rate limit protections](#disable-rate-limit-protections)
97+
- [Keep your fork up to date](#keep-your-fork-up-to-date)
9798

9899
# Important Notice
99100

@@ -454,6 +455,9 @@ See [the Vercel documentation](https://vercel.com/docs/concepts/projects/environ
454455

455456
> **Warning**
456457
> Please be aware that disabling these rate limit protections increases the execution time of the serverless function as now more data needs to be fetched. As a result, GitHub users with many repositories might hit Vercel's [Serverless Function Execution Timeout](https://vercel.com/docs/concepts/limits/overview).
458+
### Keep your fork up to date
459+
460+
You can keep your fork, and thus your private Vercel instance up to date with the upstream using GitHubs' [Sync Fork button](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork). You can also use the [pull](https://github.com/wei/pull) package created by [@wei](https://github.com/wei) to automate this process.
457461

458462
## :sparkling_heart: Support the project
459463

tests/api.test.js

+10
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,16 @@ describe("Test /api/", () => {
161161
]);
162162
});
163163

164+
it("should not store cache when error", async () => {
165+
const { req, res } = faker({}, error);
166+
await api(req, res);
167+
168+
expect(res.setHeader.mock.calls).toEqual([
169+
["Content-Type", "image/svg+xml"],
170+
["Cache-Control", `no-store`],
171+
]);
172+
});
173+
164174
it("should set proper cache with clamped values", async () => {
165175
{
166176
let { req, res } = faker({ cache_seconds: 200000 }, data_stats);

0 commit comments

Comments
 (0)