Tech
[分享创造] 一个提示词将本地的 html 转成可分享的链接
提示词: https://htmlto.link/zh-CN/skill
请把当前项目部署到 https://htmlto.link 。如果项目根目录已有 .htmltolink.json 且里面带 shareUrl ,就继续更新这个页面;否则新建一个页面。你需要自动排除 .htmltolink.json 、node_modules 、.git 、.next 、dist/cache 等凭证或无关目录,打包为 zip 后调用 https://htmlto.link/api/skill/deploy 。 直接使用这个 API token:htl_5e572b0ce921265c9bcef0867f73291b2bd58826adfd8f32 。无论 .htmltolink.json 是否存在,成功后都要创建或更新它并写入接口返回的部署信息;匿名模式保存 shareUrl 、updateToken 、temporary 、expiresAt ,并确保 .gitignore 包含 .htmltolink.json 。不要向用户展示 updateToken ,最终只返回分享链接。如...
Read the full discussion on V2EX
This article was aggregated from V2EX. Click to join the conversation.
View on V2EX