Skip to content

Commit

Permalink
minor: change response urls to workers.dev
Browse files Browse the repository at this point in the history
for better tracking via. cloudflare
  • Loading branch information
okdargy committed Feb 26, 2024
1 parent 7ddc771 commit 796975a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/templates/pages/VideoResponse.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function VideoResponse(data: AwemeList): JSX.Element {
},
{
name: `og:${data.video.duration !== 0 ? 'video' : 'image'}`,
content: `https://tnktok.com/generate/${data.video.duration !== 0 ? 'video' : 'image'}/` + data.aweme_id
content: `https://fxtiktok-rewrite.dargy.workers.dev/generate/${data.video.duration !== 0 ? 'video' : 'image'}/` + data.aweme_id
},
{
name: 'og:type',
Expand Down
2 changes: 1 addition & 1 deletion src/util/ResponseHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const returnDirectResponse = (videoInfo: AwemeList): HandlerResponse<Resp
return new Response('', {
status: 302,
headers: {
'Location': `https://tnktok.com/generate/video/` + videoInfo.aweme_id
'Location': `https://fxtiktok-rewrite.dargy.workers.dev/generate/video/` + videoInfo.aweme_id
}
})
} else {
Expand Down

0 comments on commit 796975a

Please sign in to comment.