Vue apollo configuration with caching for ssr pwa mode(Solved)
-
Hi everyone,
Are any of the members using Vue apollo for SSR with PWA mode and tests?
If you are can you share your configuration with me or a guide how to set up my dev environment correctly for quasar using this technologies?
Thanks in advance
-
Are you using our Apollo app extension? It is built to support SSR.
https://github.com/quasarframework/app-extension-apollo
Scott
-
Hi @s-molinari,
Saw your extension but also read that is not ready for production.
So can I use it for production?
Thanks for the quick reply
-
Depends on what “production” is. I’d say, if it works in development, it should work in production. There just isn’t a guarantee of no issues. Well, in OSS there is never a guarantee.
And, in the end, the AE isn’t a huge world of code either. Try it out or look at what is in it and take what you want. That’s OSS for ya.
Scott
-
@wolfiton
I’m using the extension with postgraphile (PostgreSQL + GraphQL) in SPA since 9 months. No problems. -
-
@SB - It can’t be the AE we have now, as it was rewritten just over a month or so ago.
Scott
-
@s-molinari - I’m using
@quasar/quasar-app-extension-graphql": "^1.0.0-alpha.1
. After your reply I have a look at the extension on https://libraries.io/npm/@m8a%2Fquasar-app-extension-graphql and it seems thatapp-extension-apollo
is the replacement.
Is this true? If so, can you explain the differences? -
Yes. That is exactly right. The differences are mainly the new AE also takes into consideration SSR mode and it offers a better way to config and hook custom code into the initialization of Apollo.
Scott