Google Indexing - Live Test Error?

Hi everyone,

I’m trying to get my page indexed on google, but somehow on the live test page the crawler met with an error that I can’t explain, please see snapshot below.

Error

a couple of errors from the javascript console message are as following:
(i) - Service worker registration failed: Error: Rejected at wrsParams.serviceWorkers.navigator.serviceWorker.register (:13:648) at window.loadApp …
(ii) - Websocket connection failed Event {isTrusted: false, type: error, target: G, currentTarget: G, eventPhase: 0…}
(iii) - Uncaught runtime error: null at null:null, column null Event {isTrusted: false, type: error, target: G, currentTarget: G, eventPhase: 0…}
(iv) - Uncaught (in promise) Event; https://cvboh.com/:0

I initially thought there’s a problem with my webapp, but I can’t seem to replicate the issue, be it by accessing the website myself, or getting others to test it. My website is https://cvboh.com

Has anybody experienced this error with any of your webapps built with Anvil, and what may be the solution to this? Thanks!

Hi, @ngrave.product.

Unfortunately, as of right now, Google has trouble indexing Anvil apps. This is on our list of things to fix but, for now, I’d recommend hosting your app’s website and landing page with a different hosting provider (like Wordpress, Squarespace, Wix…) and then serve your app domain with Anvil.
An example of this is https://fairshake.com/. Their landing page is hosted outside of anvil, but clicking on Login will take you to an Anvil app.

2 Likes

This has the added benefit that you aren’t using Anvil compute units for casual visitors to a web site, only for users of your web app.

2 Likes

How can we attach the same domain to both the landing page and the Anvil app?

You can either use subdomains for your apps, or embed them inside the site pages.

I use subdomains.

For example:
www.example.com is the landing page
inventory.app.example.com is an app
contacts.app.example.com another

3 Likes