自定义
项目默认 — store.config.ts
Section titled “项目默认 — store.config.ts”可提交的类型化配置,各环境共用:
const storeConfig = { site: { defaultRegion: "us", url: "https://your-store.example.com", defaultLocale: "en-US", }, brand: { name: "Your Brand", tagline: "…", contactEmail: "hello@example.com", // social… }, media: { publicBaseUrl: "", // 或 https://img.example.com }, features: { stripe: true, paypal: true, inpost: false, blog: true, },};不要把 API 密钥写在这里 — 用 .env / Wrangler secrets。
运营设置 — Admin → Settings
Section titled “运营设置 — Admin → Settings”无需重新部署即可改:
- 店铺资料与公告
- 运费
- 优惠码
数据在 D1。
主题 / UI
Section titled “主题 / UI”- 前台:Tailwind CSS v4 +
src/modules、src/pages中的 React islands - 后台:
src/admin下的 Ant Design 5 + ProComponents
在这些目录换字体、颜色与版块;支付与会话密钥勿打进客户端包。