开发教程更新网站协议

更新网站协议

在网站正式上线之前,请根据你网站提供的服务,更新 app/(legal) 目录下的网站协议。

更新隐私政策

在 Cursor 中,通过提示词生成新的隐私政策内容。

Prompt
update privacy-policy according to landing page content @en.json
with brand name "ShipAny", domain "shipany.ai", contact email is "[email protected]"

替换 app/(legal)/privacy-policy/page.mdx 文件中的内容,更新隐私政策。

update-privacy

更新服务条款

在 Cursor 中,通过提示词生成新的服务条款内容。

Prompt
update terms-of-service according to landing page content @en.json
with brand name "ShipAny", domain "shipany.ai", contact email is "[email protected]"

替换 app/(legal)/terms-of-service/page.mdx 文件中的内容,更新服务条款。

update-terms

修改路由配置

网站的隐私协议和服务条款,默认放置在 app/(legal) 目录下,不支持多语言。 通过 /privacy-policy 和 /terms-of-service 根路径访问。 如果你希望支持多语言,可以把 app/(legal) 文件下的内容移动到 app/[locale] 目录下。 就能通过 /zh/privacy-policy 和 /zh/terms-of-service 访问对应语言的隐私协议和服务条款。

需要修改 app/middleware.ts 文件的路由配置:

update-middleware