Skip to content

Commit

Permalink
fix jobs page
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-defi committed Feb 12, 2025
1 parent 631f8d8 commit 88f884d
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 150 deletions.
9 changes: 4 additions & 5 deletions apps/web/app/(base-org)/jobs/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,16 @@ export const metadata: Metadata = {
},
};

// Revalidate every 30 minutes
export const revalidate = 60 * 30;

async function getJobs() {
const res = await fetch(`${greenhouseApiUrl}/boards/basejobs/jobs?content=true`, {
next: { revalidate },
next: { revalidate: 60 * 30 }, // Revalidate every 30 minutes
});
try {
const { jobs } = (await res.json()) as { jobs: JobType[] };
return jobs;
} catch (error) {}
} catch (_error) {
console.error(_error);
}
return [];
}

Expand Down
2 changes: 1 addition & 1 deletion apps/web/next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
/// <reference types="next/navigation-types/compat/navigation" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
183 changes: 39 additions & 144 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ __metadata:
date-fns: ^4.1.0
dd-trace: ^5.21.0
dotenv: ^16.0.3
eslint-config-next: ^13.1.6
eslint-config-next: ^15.1.6
ethers: 5.7.2
framer-motion: ^11.9.0
hls.js: ^1.5.14
Expand All @@ -566,7 +566,7 @@ __metadata:
jsdom: ^25.0.0
jsonwebtoken: ^9.0.2
kysely: ^0.27.3
next: ^14.2.16
next: ^15.1.6
node-fetch: ^3.3.0
permissionless: ^0.1.41
pg: ^8.12.0
Expand Down Expand Up @@ -5463,13 +5463,6 @@ __metadata:
languageName: node
linkType: hard

"@next/env@npm:14.2.24":
version: 14.2.24
resolution: "@next/env@npm:14.2.24"
checksum: 251f9f3038fcc286619abd9fb32dcbf9f6e00355ecc7905986a3352658a67eca896519ba19df23f4e683e9628a6cf1414e94b498c1a4daac4060762a2658ff77
languageName: node
linkType: hard

"@next/env@npm:15.1.6":
version: 15.1.6
resolution: "@next/env@npm:15.1.6"
Expand Down Expand Up @@ -5502,16 +5495,18 @@ __metadata:
languageName: node
linkType: hard

"@next/swc-darwin-arm64@npm:13.5.8":
version: 13.5.8
resolution: "@next/swc-darwin-arm64@npm:13.5.8"
conditions: os=darwin & cpu=arm64
"@next/eslint-plugin-next@npm:15.1.7":
version: 15.1.7
resolution: "@next/eslint-plugin-next@npm:15.1.7"
dependencies:
fast-glob: 3.3.1
checksum: a0cb7fc8f94db9c24edbd6debcd7a47a0b07b9473406ef4d97d7b2856feb5680396a96486c34af17e427b38fc03e57092f0b183022914f86320697f136bae51b
languageName: node
linkType: hard

"@next/swc-darwin-arm64@npm:14.2.24":
version: 14.2.24
resolution: "@next/swc-darwin-arm64@npm:14.2.24"
"@next/swc-darwin-arm64@npm:13.5.8":
version: 13.5.8
resolution: "@next/swc-darwin-arm64@npm:13.5.8"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard
Expand All @@ -5537,13 +5532,6 @@ __metadata:
languageName: node
linkType: hard

"@next/swc-darwin-x64@npm:14.2.24":
version: 14.2.24
resolution: "@next/swc-darwin-x64@npm:14.2.24"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard

"@next/swc-darwin-x64@npm:15.1.6":
version: 15.1.6
resolution: "@next/swc-darwin-x64@npm:15.1.6"
Expand All @@ -5565,13 +5553,6 @@ __metadata:
languageName: node
linkType: hard

"@next/swc-linux-arm64-gnu@npm:14.2.24":
version: 14.2.24
resolution: "@next/swc-linux-arm64-gnu@npm:14.2.24"
conditions: os=linux & cpu=arm64 & libc=glibc
languageName: node
linkType: hard

"@next/swc-linux-arm64-gnu@npm:15.1.6":
version: 15.1.6
resolution: "@next/swc-linux-arm64-gnu@npm:15.1.6"
Expand All @@ -5593,13 +5574,6 @@ __metadata:
languageName: node
linkType: hard

"@next/swc-linux-arm64-musl@npm:14.2.24":
version: 14.2.24
resolution: "@next/swc-linux-arm64-musl@npm:14.2.24"
conditions: os=linux & cpu=arm64 & libc=musl
languageName: node
linkType: hard

"@next/swc-linux-arm64-musl@npm:15.1.6":
version: 15.1.6
resolution: "@next/swc-linux-arm64-musl@npm:15.1.6"
Expand All @@ -5621,13 +5595,6 @@ __metadata:
languageName: node
linkType: hard

"@next/swc-linux-x64-gnu@npm:14.2.24":
version: 14.2.24
resolution: "@next/swc-linux-x64-gnu@npm:14.2.24"
conditions: os=linux & cpu=x64 & libc=glibc
languageName: node
linkType: hard

"@next/swc-linux-x64-gnu@npm:15.1.6":
version: 15.1.6
resolution: "@next/swc-linux-x64-gnu@npm:15.1.6"
Expand All @@ -5649,13 +5616,6 @@ __metadata:
languageName: node
linkType: hard

"@next/swc-linux-x64-musl@npm:14.2.24":
version: 14.2.24
resolution: "@next/swc-linux-x64-musl@npm:14.2.24"
conditions: os=linux & cpu=x64 & libc=musl
languageName: node
linkType: hard

"@next/swc-linux-x64-musl@npm:15.1.6":
version: 15.1.6
resolution: "@next/swc-linux-x64-musl@npm:15.1.6"
Expand All @@ -5677,13 +5637,6 @@ __metadata:
languageName: node
linkType: hard

"@next/swc-win32-arm64-msvc@npm:14.2.24":
version: 14.2.24
resolution: "@next/swc-win32-arm64-msvc@npm:14.2.24"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard

"@next/swc-win32-arm64-msvc@npm:15.1.6":
version: 15.1.6
resolution: "@next/swc-win32-arm64-msvc@npm:15.1.6"
Expand All @@ -5705,27 +5658,13 @@ __metadata:
languageName: node
linkType: hard

"@next/swc-win32-ia32-msvc@npm:14.2.24":
version: 14.2.24
resolution: "@next/swc-win32-ia32-msvc@npm:14.2.24"
conditions: os=win32 & cpu=ia32
languageName: node
linkType: hard

"@next/swc-win32-x64-msvc@npm:13.5.8":
version: 13.5.8
resolution: "@next/swc-win32-x64-msvc@npm:13.5.8"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard

"@next/swc-win32-x64-msvc@npm:14.2.24":
version: 14.2.24
resolution: "@next/swc-win32-x64-msvc@npm:14.2.24"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard

"@next/swc-win32-x64-msvc@npm:15.1.6":
version: 15.1.6
resolution: "@next/swc-win32-x64-msvc@npm:15.1.6"
Expand Down Expand Up @@ -7911,16 +7850,6 @@ __metadata:
languageName: node
linkType: hard

"@swc/helpers@npm:0.5.5":
version: 0.5.5
resolution: "@swc/helpers@npm:0.5.5"
dependencies:
"@swc/counter": ^0.1.3
tslib: ^2.4.0
checksum: d4f207b191e54b29460804ddf2984ba6ece1d679a0b2f6a9c765dcf27bba92c5769e7965668a4546fb9f1021eaf0ff9be4bf5c235ce12adcd65acdfe77187d11
languageName: node
linkType: hard

"@swc/jest@npm:0.2.20":
version: 0.2.20
resolution: "@swc/jest@npm:0.2.20"
Expand Down Expand Up @@ -11976,12 +11905,12 @@ __metadata:
linkType: hard

"call-bind-apply-helpers@npm:^1.0.0, call-bind-apply-helpers@npm:^1.0.1":
version: 1.0.1
resolution: "call-bind-apply-helpers@npm:1.0.1"
version: 1.0.2
resolution: "call-bind-apply-helpers@npm:1.0.2"
dependencies:
es-errors: ^1.3.0
function-bind: ^1.1.2
checksum: 3c55343261bb387c58a4762d15ad9d42053659a62681ec5eb50690c6b52a4a666302a01d557133ce6533e8bd04530ee3b209f23dd06c9577a1925556f8fcccdf
checksum: b2863d74fcf2a6948221f65d95b91b4b2d90cfe8927650b506141e669f7d5de65cea191bf788838bc40d13846b7886c5bc5c84ab96c3adbcf88ad69a72fcdc6b
languageName: node
linkType: hard

Expand Down Expand Up @@ -14852,6 +14781,30 @@ __metadata:
languageName: node
linkType: hard

"eslint-config-next@npm:^15.1.6":
version: 15.1.7
resolution: "eslint-config-next@npm:15.1.7"
dependencies:
"@next/eslint-plugin-next": 15.1.7
"@rushstack/eslint-patch": ^1.10.3
"@typescript-eslint/eslint-plugin": ^5.4.2 || ^6.0.0 || ^7.0.0 || ^8.0.0
"@typescript-eslint/parser": ^5.4.2 || ^6.0.0 || ^7.0.0 || ^8.0.0
eslint-import-resolver-node: ^0.3.6
eslint-import-resolver-typescript: ^3.5.2
eslint-plugin-import: ^2.31.0
eslint-plugin-jsx-a11y: ^6.10.0
eslint-plugin-react: ^7.37.0
eslint-plugin-react-hooks: ^5.0.0
peerDependencies:
eslint: ^7.23.0 || ^8.0.0 || ^9.0.0
typescript: ">=3.3.1"
peerDependenciesMeta:
typescript:
optional: true
checksum: 54a5facbd4c9bf473bdb29416036bfe508d198de223cad05763d5708d0d1f2a7cdab984796db6e8d187568831436c7a4fd1657f12c938a05d55944db78af14fe
languageName: node
linkType: hard

"eslint-config-prettier@npm:^8.5.0":
version: 8.10.0
resolution: "eslint-config-prettier@npm:8.10.0"
Expand Down Expand Up @@ -20491,7 +20444,7 @@ __metadata:
languageName: node
linkType: hard

"next@npm:*":
"next@npm:*, next@npm:^15.1.6":
version: 15.1.7
resolution: "next@npm:15.1.7"
dependencies:
Expand Down Expand Up @@ -20668,64 +20621,6 @@ __metadata:
languageName: node
linkType: hard

"next@npm:^14.2.16":
version: 14.2.24
resolution: "next@npm:14.2.24"
dependencies:
"@next/env": 14.2.24
"@next/swc-darwin-arm64": 14.2.24
"@next/swc-darwin-x64": 14.2.24
"@next/swc-linux-arm64-gnu": 14.2.24
"@next/swc-linux-arm64-musl": 14.2.24
"@next/swc-linux-x64-gnu": 14.2.24
"@next/swc-linux-x64-musl": 14.2.24
"@next/swc-win32-arm64-msvc": 14.2.24
"@next/swc-win32-ia32-msvc": 14.2.24
"@next/swc-win32-x64-msvc": 14.2.24
"@swc/helpers": 0.5.5
busboy: 1.6.0
caniuse-lite: ^1.0.30001579
graceful-fs: ^4.2.11
postcss: 8.4.31
styled-jsx: 5.1.1
peerDependencies:
"@opentelemetry/api": ^1.1.0
"@playwright/test": ^1.41.2
react: ^18.2.0
react-dom: ^18.2.0
sass: ^1.3.0
dependenciesMeta:
"@next/swc-darwin-arm64":
optional: true
"@next/swc-darwin-x64":
optional: true
"@next/swc-linux-arm64-gnu":
optional: true
"@next/swc-linux-arm64-musl":
optional: true
"@next/swc-linux-x64-gnu":
optional: true
"@next/swc-linux-x64-musl":
optional: true
"@next/swc-win32-arm64-msvc":
optional: true
"@next/swc-win32-ia32-msvc":
optional: true
"@next/swc-win32-x64-msvc":
optional: true
peerDependenciesMeta:
"@opentelemetry/api":
optional: true
"@playwright/test":
optional: true
sass:
optional: true
bin:
next: dist/bin/next
checksum: b85053104c932b0e1b248623e2b40c78a6597ca3acf9bdad6040a9a2748b4badf59af7d0095ad54405f1b74d106f89797b4cbd072ad49d732f54b6df2e6fd8b7
languageName: node
linkType: hard

"no-case@npm:^3.0.4":
version: 3.0.4
resolution: "no-case@npm:3.0.4"
Expand Down

0 comments on commit 88f884d

Please sign in to comment.