feat: make the config patchable
This commit is contained in:
parent
c6435ae2b4
commit
f0c52d8a8b
4 changed files with 113 additions and 22 deletions
|
|
@ -13,6 +13,7 @@ import clsx from 'clsx'
|
|||
|
||||
import Toaster from '~/components/Toaster'
|
||||
import stylesheet from '~/tailwind.css?url'
|
||||
import { getContext } from '~/utils/config'
|
||||
|
||||
export const meta: MetaFunction = () => [
|
||||
{ title: 'Headplane' },
|
||||
|
|
@ -23,7 +24,9 @@ export const links: LinksFunction = () => [
|
|||
{ rel: 'stylesheet', href: stylesheet }
|
||||
]
|
||||
|
||||
export function loader() {
|
||||
export async function loader() {
|
||||
await getContext()
|
||||
|
||||
if (!process.env.HEADSCALE_URL) {
|
||||
throw new Error('The HEADSCALE_URL environment variable is required')
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue