The team is now working on the WordPress Interactivity API. This unblocks the same UX Frontity framework enabled but directly in WordPress Core, fully compatible with the new Site Editor.
Last year we learned that stale-while-revalidate is the best cache technique for this type of architecture. At that moment, only KeyCDN and StackPath supported it.
We got in contact with Now because it didn’t work with their CDN. It looks like they have finally fixed it:
They call it “Serverless Pre-Rendering” but I think we should stick to the real name, stale-while-revalidate.
Anyway, I think that our first deployment guide could be Now because it’s serverless, it’s cheap and it’s easy to set up. For what I see, their CDN works now on external domains as well.
2 Likes
luisherranz2
EDIT: New instructions
We have created a Now Builder and now it’s much simpler to use:
I have made the first version of this guide of how to deploy Frontity on Now. @luisherranz When you have some time, could you take a look at it to check if everything makes sense please?
Point your main domain www.mydomain.com to Frontity, as it will be the domain your users will visit.
Create a new subdomain for your admin dashboard, where you will access to edit your content. Using a subdomain will prevent you from buying a new one. You could use for example wp.mydomain.com .
As you say I think the best approach would be to create a subdomain for managing the content and point the main one to Frontity. If you already have posts and pages you should migrate it to the new domain.
You just have to change state.source.api at frontity.settings.js inside @frontity/wp-source package to wp.mydomain.com/wp-json/, without /wp/v2/.
Let us know if you need any help. Looking forward to seeing what you’ve built
1 Like
luisherranz14
You can test that everything works with a different domain before migrating your whole site to Frontity.
Now gives you a default .now.sh domain for free. It can be something like https://laotramirada.now.sh/ for example.
vscopise15
Hi Santos,
I would like to know if it is possible to redirect all traffic to zeit.co and from there redirect wp.mydomain.com to my content server
SantosGuillamot16
Hello
Mmm don’t know about this, I’m sure someone from the @development-team will help you better. Could you guys take a look at it?
luisherranz17
@vscopise I don’t quite understand it either. Could you please reformulate your question?
vscopise18
Hi Luis,
I want to edit the contents of Wordpress by accessing wp.mydomain.com,
while the traffic going to mydomain.com is redirected to Zeit.co and handled by Frontity.
Apparently this could be done in Zeit according to this documentation,
but it is not clear to me the way
Thks
luisherranz19
Oh, I see. I don’t think you can host your WordPress in Now, as far as I know is only for serverless.