feat: watch config file for external edits
This commit is contained in:
parent
02e5e3e92a
commit
cc1427882f
4 changed files with 23 additions and 4 deletions
|
|
@ -10,7 +10,7 @@ import {
|
|||
import { ErrorPopup } from '~/components/Error'
|
||||
import Toaster from '~/components/Toaster'
|
||||
import stylesheet from '~/tailwind.css?url'
|
||||
import { getContext } from '~/utils/config'
|
||||
import { getContext, registerConfigWatcher } from '~/utils/config'
|
||||
|
||||
export const meta: MetaFunction = () => [
|
||||
{ title: 'Headplane' },
|
||||
|
|
@ -23,6 +23,7 @@ export const links: LinksFunction = () => [
|
|||
|
||||
export async function loader() {
|
||||
await getContext()
|
||||
registerConfigWatcher()
|
||||
|
||||
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