chore: update

This commit is contained in:
DDMeaqua
2024-08-16 16:10:31 +08:00
parent 9c7bacc65e
commit d88cc575e5
3 changed files with 15 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
import md5 from "spark-md5";
import { DEFAULT_MODELS } from "../constant";
import { DEFAULT_MODELS, DEFAULT_GA_ID } from "../constant";
declare global {
namespace NodeJS {
@@ -159,6 +159,7 @@ export const getServerSideConfig = () => {
alibabaApiKey: getApiKey(process.env.ALIBABA_API_KEY),
gtmId: process.env.GTM_ID,
gaId: process.env.GA_ID || DEFAULT_GA_ID,
needCode: ACCESS_CODES.size > 0,
code: process.env.CODE,