Skip to content

Commit 9a2ba7f

Browse files
author
Andrei
committed
Fix server issue
1 parent 605f972 commit 9a2ba7f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/api/versions/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { NextRequest } from 'next/server'
22
import { tryCatch } from '@/lib/try-catch'
3-
import { Platforms } from '@/components/os-selector'
3+
import { Platforms } from '@/lib/utils'
44

55
const ENDPOINT = 'https://raw.githubusercontent.com/Bugazelle/chromium-all-old-stable-versions/master/chromium.stable.json'
66

components/os-selector.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import {
2424
Search,
2525
Loader2,
2626
} from "lucide-react"
27+
import { Platforms } from "@/lib/utils"
2728

2829
type OperatingSystem = typeof Platforms[number]
2930

@@ -42,9 +43,6 @@ interface Platform {
4243
os: OperatingSystem
4344
}
4445

45-
export const Platforms = ['android', 'mac', 'linux', 'linux64', 'win', 'win64'] as const
46-
47-
4846
const platforms: Platform[] = [
4947
{
5048
text: "Android",

lib/utils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ import { twMerge } from "tailwind-merge"
44
export function cn(...inputs: ClassValue[]) {
55
return twMerge(clsx(inputs))
66
}
7+
8+
export const Platforms = ['android', 'mac', 'linux', 'linux64', 'win', 'win64'] as const

0 commit comments

Comments
 (0)