web: add env variable & plausible functionality
This commit is contained in:
9
web/src/lib/env.ts
Normal file
9
web/src/lib/env.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { env } from "$env/dynamic/public";
|
||||
|
||||
const variables = {
|
||||
HOST: env.PUBLIC_HOST,
|
||||
PLAUSIBLE_HOST: env.PUBLIC_PLAUSIBLE_HOST,
|
||||
PLAUSIBLE_ENABLED: env.PUBLIC_HOST && env.PUBLIC_PLAUSIBLE_HOST,
|
||||
}
|
||||
|
||||
export default variables;
|
||||
Reference in New Issue
Block a user