Deploy DeepLX on Cloudflare.
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
.