From f2638f59891f379d704e7dca6ee56789e21b690a Mon Sep 17 00:00:00 2001 From: jingyang <3161362058@qq.com> Date: Thu, 29 Aug 2024 17:49:11 +0800 Subject: [PATCH 1/3] upadte env --- projects/fastgpt/.env.example | 7 +- .../fastgpt/components/home/CTAButton.tsx | 3 +- projects/fastgpt/config/site.ts | 26 ++++- projects/fastgpt/next-sitemap.config.js | 4 +- projects/fastgpt/types/siteConfig.ts | 99 ++++++++++--------- 5 files changed, 80 insertions(+), 59 deletions(-) diff --git a/projects/fastgpt/.env.example b/projects/fastgpt/.env.example index dfa0426..4c831aa 100644 --- a/projects/fastgpt/.env.example +++ b/projects/fastgpt/.env.example @@ -1,4 +1,5 @@ -SITE_URL= - NEXT_PUBLIC_BAIDU_TONGJI= -NEXT_PUBLIC_GOOGLE_ID= \ No newline at end of file +NEXT_PUBLIC_GOOGLE_ID= + +NEXT_PUBLIC_HOME_URL= +NEXT_PUBLIC_USER_URL= \ No newline at end of file diff --git a/projects/fastgpt/components/home/CTAButton.tsx b/projects/fastgpt/components/home/CTAButton.tsx index ebf4cea..5d5786f 100644 --- a/projects/fastgpt/components/home/CTAButton.tsx +++ b/projects/fastgpt/components/home/CTAButton.tsx @@ -1,5 +1,6 @@ 'use client'; import { Button } from '@/components/ui/button'; +import { siteConfig } from '@/config/site'; import { RocketIcon } from 'lucide-react'; import Link from 'next/link'; import { useEffect, useState } from 'react'; @@ -23,7 +24,7 @@ const CTAButton = ({ locale, stars: initialStars }: { locale: any; stars: number return (
- +