@haigagaga #6 用cf workers 就行,只有向指定路径get才能返回配置文件 // 配置路径 const pathToMatch = '/sub'; //配置返回字符串 const responseString = ` This is your subscription😀 `; addEventListener('fetch', event => { event.respondWith(handleRequest(event.request)) }) async function handleRequest(request) { // 检查请求路径是否匹配配置的路径 if (new URL(request.url).pathname === pathToMatch) { // 构建包含指定字符串的响应 return new Response(responseString, { headers: { 'Content-Type': 'text/plain; charset=UTF-8', }, }) } // 如果路径不匹配,则继续传递请求 return fetch(request) }
@bigtree5064 #9 好嘞我去试试~
@haigagaga #6
用cf workers 就行,只有向指定路径get才能返回配置文件
@haigagaga #6 肯定私有仓库啊,然后用cf反代加鉴权
@haigagaga #10
还可以看每次修订记录,再也不怕手滑了
@香农 #12 牛批大佬!!
https://www.nodeseek.com/post-47125-1
同求,蹲一个
@hai125698 #16 6666666正需要
@香农 #12 感谢!鸡腿奉上
楼主用上了吗?效果咋样
