feat: add configuration loading

This commit is contained in:
Aarnav Tale
2024-03-26 16:55:20 -04:00
parent fe285b4e6d
commit 5bb2f7dfa3
7 changed files with 551 additions and 6 deletions
+18
View File
@@ -0,0 +1,18 @@
import { useLoaderData } from '@remix-run/react'
import { getConfig } from '~/utils/config'
export async function loader() {
const config = await getConfig()
return config
}
export default function Page() {
const data = useLoaderData<typeof loader>()
return (
<div>
{JSON.stringify(data, null, 4)}
</div>
)
}