Make manifestFilename served by API backend #13930
Unanswered
albertosgz
asked this question in
CLI - PWA mode
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team.
First of all a very big thank you to all of you due to the huge and awesome framework you are building out!!
After that I would like to tell my situation and a possible solution.
I am implementing a PWA based on Quasar as front and Laravel as API-backend (but this issue applies to any framework in back). The configuration for Quasar is the next one:
I choose Vite since looks easier, fancy and more updated from scratch than webpack (but this can be another discussion ;) )
In order to make it to work with the API I setup the next proxy and pwa conf in quasar.config.js:
As you can notice, the idea is to generate the web manifest dynamically in the back. Since the file is prepended by
api/
, should be proxied to api by the dev server.But is not possible right now, because is hardcoded in this piece of code. In fact, just to test it out, I comment the middleware of those lines, and I started to see the request to the back.
So, my is question is, can we disable such middleware in the dev server somehow?
My proposal would be adding a configuration flag and check it out before setup the middleware. But before submit a PR, I would like to listen your more experienced opinion.
I googled for everything related with this topic on quasar, vite, etc. And only found this question, which is also unanswered.
Please, let me know any concerns, doubts or proposals.
Thanks team!!
Beta Was this translation helpful? Give feedback.
All reactions