mirror of
https://github.com/henrygd/beszel.git
synced 2025-12-17 10:46:16 +01:00
pass hub version through html and update dependencies
- Changed Vite configuration to replace version during development.
This commit is contained in:
@@ -11,7 +11,7 @@ const routes = {
|
||||
* The base path of the application.
|
||||
* This is used to prepend the base path to all routes.
|
||||
*/
|
||||
export const basePath = window.BASE_PATH || ""
|
||||
export const basePath = globalThis.BESZEL.BASE_PATH || ""
|
||||
|
||||
/**
|
||||
* Prepends the base path to the given path.
|
||||
|
||||
3
beszel/site/src/types.d.ts
vendored
3
beszel/site/src/types.d.ts
vendored
@@ -2,8 +2,9 @@ import { RecordModel } from "pocketbase"
|
||||
|
||||
// global window properties
|
||||
declare global {
|
||||
interface Window {
|
||||
var BESZEL: {
|
||||
BASE_PATH: string
|
||||
HUB_VERSION: string
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user