Skip to content

Commit a62a7e7

Browse files
authored
Merge pull request #432 from api-platform/staging
MEP
2 parents bf3b669 + be9e7b1 commit a62a7e7

File tree

6 files changed

+46
-43
lines changed

6 files changed

+46
-43
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
echo "URL=api-platform.com" >> "$GITHUB_ENV"
8282
echo 'CORS=["https://api-platform.com", "http://localhost", "https://localhost", "http://localhost:3000"]' >> "$GITHUB_ENV"
8383
echo "NAMESPACE=prod-website" >> "$GITHUB_ENV"
84-
echo "REPLICA=3" >> "$GITHUB_ENV"
84+
echo "REPLICA=1" >> "$GITHUB_ENV"
8585
else
8686
CONTEXT=nonprod
8787
if [ "$GITHUB_EVENT_NAME" == "pull_request" ]; then

pwa/api/contributors.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ export const octokit = new MyOctokit({
5555
},
5656
request: {
5757
fetch: (url: string, opts: any) => {
58-
return fetch(url, { ...opts, next: { tags: ["contributors"] } });
58+
return fetch(url, {
59+
...opts,
60+
next: { tags: ["contributors"], revalidate: 86400 },
61+
});
5962
},
6063
},
6164
});

pwa/app/(common)/community/contributors/[slug]/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ export async function generateStaticParams() {
7373
return contributors.map((c) => ({ slug: c.login }));
7474
}
7575

76+
export const revalidate = 86400;
77+
7678
export default async function Page({
7779
params: { slug },
7880
}: {

pwa/app/(common)/community/contributors/page.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ export async function generateMetadata(): Promise<Metadata> {
2121
};
2222
}
2323

24-
export const revalidate = 86400; // revalidate the contributors ranking every day
25-
2624
export default async function Page() {
2725
const contributors = await getAllContributors();
2826
return (

pwa/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"mapbox-gl": "^2.15.0",
2727
"markdown-it": "^13.0.1",
2828
"negotiator": "^0.6.3",
29-
"next": "13.4.8",
29+
"next": "13.4.10",
3030
"next-themes": "npm:@wits/next-themes@^0.2.16",
3131
"octokit": "^2.0.19",
3232
"prettier": "^2.8.8",

pwa/pnpm-lock.yaml

Lines changed: 38 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)