mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
fix(website): Wait for edge config to return deployed_sha (#7143)
#7136 introduced a bug where the portal's deployed_sha is now blank because we don't `await` its response.
This commit is contained in:
@@ -8,12 +8,8 @@ export const dynamic = "force-static";
|
||||
export const revalidate = 60;
|
||||
|
||||
export async function GET(_req: NextRequest) {
|
||||
return NextResponse.json(versions());
|
||||
}
|
||||
|
||||
function versions() {
|
||||
return {
|
||||
portal: get("deployed_sha"),
|
||||
const versions = {
|
||||
portal: await get("deployed_sha"),
|
||||
// mark:current-apple-version
|
||||
apple: "1.3.6",
|
||||
// mark:current-android-version
|
||||
@@ -25,4 +21,6 @@ function versions() {
|
||||
// mark:current-gateway-version
|
||||
gateway: "1.3.2",
|
||||
};
|
||||
|
||||
return NextResponse.json(versions);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user