ifyour / deeplx-for-cloudflare

🔥 Deploy DeepLX on Cloudflare

Home Page:https://deeplx.mingming.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deploy DeepLX on Cloudflare.

Usage

curl --location 'https://deeplx.mingming.dev/translate' \
--header 'Content-Type: application/json' \
--data '{
    "text": "免费,无限量翻译 API",
    "source_lang": "zh",
    "target_lang": "en"
}'

Development

npm i && npm run dev

Deploy

npm run deploy
Another way to deploy

Open the Cloudflare dashboard, select Workers & Pages -> Create Application -> Create Worker -> Deploy -> Edit Code, and paste /dist/index.js code, then click Save and Deploy.

About

🔥 Deploy DeepLX on Cloudflare

https://deeplx.mingming.dev/


Languages

Language:TypeScript 100.0%