Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Poke API 取得処理のプロキシーネットワーク対応 #143

Open
knokmki612 opened this issue Feb 7, 2024 · 2 comments · May be fixed by #148
Open

Poke API 取得処理のプロキシーネットワーク対応 #143

knokmki612 opened this issue Feb 7, 2024 · 2 comments · May be fixed by #148
Labels
enhancement New feature or request

Comments

@knokmki612
Copy link
Contributor

ref #142

実施することでプロキシーネットワーク特有のトラブルシューティングが不要になり受講者が本質的な部分への問題解決に集中できる期待がある

参考 https://hackmd.io/SnbCplycT0enOGwez4bIlg#Nuxt%E3%81%AE%E3%83%97%E3%83%AD%E3%82%AD%E3%82%B7%E3%81%AE%E8%A8%AD%E5%AE%9A

@knokmki612 knokmki612 added the enhancement New feature or request label Feb 7, 2024
@knokmki612
Copy link
Contributor Author

knokmki612 commented Feb 7, 2024

参考 https://hackmd.io/SnbCplycT0enOGwez4bIlg#Nuxt%E3%81%AE%E3%83%97%E3%83%AD%E3%82%AD%E3%82%B7%E3%81%AE%E8%A8%AD%E5%AE%9A

おそらくこの変更は機能しない(Node.jsランタイムが提供するFetch APIがagentオプションに対応していない)。

https://github.com/unjs/ofetch に差し替え、ProxyAgentを使用する形で対応できればと思った。

@knokmki612
Copy link
Contributor Author

ここも必要

const { data: pokemons, refresh } = await useFetch(
() =>
`https://pokeapi.co/api/v2/pokemon?offset=${offset.value}&limit=${limit.value}`,
{
default: () => [],
},
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant