diff options
| author | Fuwn <[email protected]> | 2023-12-28 17:25:24 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-12-28 17:25:24 -0800 |
| commit | d59b5e92bc2de54d19413d4a21df6e761dac8c69 (patch) | |
| tree | 332a803fdac2cc0ab8cbabd96a7dccfa2f68f061 /src/lib/Utility | |
| parent | feat(html): update description and title (diff) | |
| download | due.moe-d59b5e92bc2de54d19413d4a21df6e761dac8c69.tar.xz due.moe-d59b5e92bc2de54d19413d4a21df6e761dac8c69.zip | |
chore(manga): no proxy dev
Diffstat (limited to 'src/lib/Utility')
| -rw-r--r-- | src/lib/Utility/proxy.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/Utility/proxy.ts b/src/lib/Utility/proxy.ts new file mode 100644 index 00000000..81d40a29 --- /dev/null +++ b/src/lib/Utility/proxy.ts @@ -0,0 +1,8 @@ +import { env } from '$env/dynamic/public'; + +export const proxy = (url: string, disable = false) => + env.PUBLIC_ANILIST_REDIRECT_URI?.includes('192.168') && !disable + ? url + : `https://due-proxy.fuwn.workers.dev/?q=${encodeURIComponent(url)}`; + +export default proxy; |