Skip to content

Commit

Permalink
plausible url is client var
Browse files Browse the repository at this point in the history
  • Loading branch information
nemanjam committed Aug 28, 2024
1 parent ae34e70 commit a31450a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config/server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NODE_ENV as NODE_ENV_STRING, PLAUSIBLE_SCRIPT_URL, PREVIEW_MODE } from 'astro:env/server';
import { NODE_ENV as NODE_ENV_STRING, PREVIEW_MODE } from 'astro:env/server';

import { configServerSchema } from '@/schemas/config';
import { CONFIG_CLIENT } from '@/config/client';
Expand All @@ -11,7 +11,7 @@ import type { ConfigServerType } from '@/types/config';
const NODE_ENV = NODE_ENV_STRING as ConfigServerType['NODE_ENV'];

/** SSG - all env vars are build time only. */
const configServerData: ConfigServerType = { NODE_ENV, PREVIEW_MODE, PLAUSIBLE_SCRIPT_URL };
const configServerData: ConfigServerType = { NODE_ENV, PREVIEW_MODE };

export const CONFIG_SERVER = validateData(configServerData, configServerSchema);

Expand Down

0 comments on commit a31450a

Please sign in to comment.