-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add interceptors and proxies for dev server #661
base: next
Are you sure you want to change the base?
Conversation
Now, we can only proxy the request seed by the |
If it works fine, then the cert is not necessary. But in some cases, you will get error when you are try to load HTTPS url in a HTTP page. |
If the current dev server solution is enough to support UI development. I'd like moving on the create a new local playlist based on indexed DB. The cookies issue will be deprioritized. |
There's a builtin |
very interesting pr to support dev in browser. still testing it because it seems not working in my environment. (Mac, Chrome V93). It seems not easy for developers to setup. More docs may help. In my situation, console complains about this. I'm still try to figure out what does it mean.
I'm sure proxy port is running at port 3001. |
I believe it's due to browser won't fetch service worker if the https certificate is not trusted. You can either trust the certificate or run vite without https because service worker still work under localhost. |
thanks. problem solved. Now in homepage it is working as expect. But when you enter any playlist, or any function related to cookie API (we use chrome.cookie API), things broke. I think the reason is browser environment does not support chrome extension API, so if we need things work, in dev mode, we need to migrate chrome related api to dev server. So I think this feature is still in experimental stage. The idea is good, more research is necessary. |
Now, we can use
yarn dev
to start dev server