Skip to content

Commit

Permalink
chore: fix devsite caching issue and update devsite to next 14 (#998)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thunear authored Oct 31, 2023
1 parent 143182d commit 8834347
Show file tree
Hide file tree
Showing 3 changed files with 132 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"next": "13.5.4"
"next": "^14.0.0"
},
"devDependencies": {
"@navikt/aksel-icons": "^5.6.5",
Expand Down
4 changes: 4 additions & 0 deletions apps/dev/src/app/api/alias/list/route.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export const dynamic = 'force-dynamic';

export async function GET() {
const requestHeaders: HeadersInit = new Headers();
requestHeaders.set('Content-Type', 'application/json');
Expand All @@ -7,6 +9,8 @@ export async function GET() {
'https://api.vercel.com/v4/aliases?teamId=' + process.env.VERCEL_TEAM_ID,
{
headers: requestHeaders,
next: { revalidate: 0 },
cache: 'no-store',
},
);
const data = (await res.json()) as Promise<Response>;
Expand Down
129 changes: 127 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5274,6 +5274,13 @@ __metadata:
languageName: node
linkType: hard

"@next/env@npm:14.0.1":
version: 14.0.1
resolution: "@next/env@npm:14.0.1"
checksum: 1fab6732f877c3702fce12396f16046f9b7a59c70b0d0b3db713995eed431706d12175530709d21c613682865ce82ef965a5719a43d6bc84142462a8ed558cda
languageName: node
linkType: hard

"@next/eslint-plugin-next@npm:^13.2.4":
version: 13.2.4
resolution: "@next/eslint-plugin-next@npm:13.2.4"
Expand All @@ -5290,62 +5297,125 @@ __metadata:
languageName: node
linkType: hard

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

"@nodelib/fs.scandir@npm:2.1.5":
version: 2.1.5
resolution: "@nodelib/fs.scandir@npm:2.1.5"
Expand Down Expand Up @@ -12653,7 +12723,7 @@ __metadata:
"@navikt/aksel-icons": ^5.6.5
"@types/luxon": ^3.3.2
luxon: ^3.4.3
next: 13.5.4
next: ^14.0.0
normalize.css: ^8.0.1
react-countdown-circle-timer: ^3.2.1
languageName: unknown
Expand Down Expand Up @@ -19102,7 +19172,7 @@ __metadata:
languageName: node
linkType: hard

"next@npm:13.5.4, next@npm:^13.5.4":
"next@npm:^13.5.4":
version: 13.5.4
resolution: "next@npm:13.5.4"
dependencies:
Expand Down Expand Up @@ -19157,6 +19227,61 @@ __metadata:
languageName: node
linkType: hard

"next@npm:^14.0.0":
version: 14.0.1
resolution: "next@npm:14.0.1"
dependencies:
"@next/env": 14.0.1
"@next/swc-darwin-arm64": 14.0.1
"@next/swc-darwin-x64": 14.0.1
"@next/swc-linux-arm64-gnu": 14.0.1
"@next/swc-linux-arm64-musl": 14.0.1
"@next/swc-linux-x64-gnu": 14.0.1
"@next/swc-linux-x64-musl": 14.0.1
"@next/swc-win32-arm64-msvc": 14.0.1
"@next/swc-win32-ia32-msvc": 14.0.1
"@next/swc-win32-x64-msvc": 14.0.1
"@swc/helpers": 0.5.2
busboy: 1.6.0
caniuse-lite: ^1.0.30001406
postcss: 8.4.31
styled-jsx: 5.1.1
watchpack: 2.4.0
peerDependencies:
"@opentelemetry/api": ^1.1.0
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
sass:
optional: true
bin:
next: dist/bin/next
checksum: d142407f47012eb57ba3932f91453960c79d7df2fef03ded581f32195b98a4378e13c49709f498a112d142109a8edd73f40357ee102a6bd4d7b1f76de9f0877a
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 8834347

Please sign in to comment.