add docker config

This commit is contained in:
2026-03-26 23:41:52 -04:00
parent 8f62fa1935
commit e525b7faa3
8 changed files with 108 additions and 7 deletions

View File

@@ -1,3 +1,5 @@
export const dynamic = 'force-dynamic'
import { redirect } from 'next/navigation'
import { getLibraries } from '@/lib/libraries'
import LibraryCard from '@/components/LibraryCard'

View File

@@ -2,7 +2,7 @@ import path from 'path'
import fs from 'fs'
import type { Library, LibraryType } from '@/types'
const CONFIG_PATH = path.resolve(process.cwd(), 'libraries.json')
const CONFIG_PATH = process.env.LIBRARIES_CONFIG_PATH ?? path.resolve(process.cwd(), 'libraries.json')
const CONFIG_TMP = CONFIG_PATH + '.tmp'
export function getLibraries(): Library[] {