Oh, I see. Much better obviously
I add trouble using
server.js so I renamed it to
index.js. That’s fixed in your configuration, right?
One problem is that GC strips the folder in the server, like this:
But in the client, well that url is obviously
/frontity-server/xxx so it doesn’t match.
It cannot be fixed by adding the setting:
because then the client urls become
I saw you changed your menu to fix that and it works fine with SSR, but that won’t work once the client is rehydrated.
Anyway, it’s not that important as this should not be a problem once you add a custom domain.
For what I’m reading it looks like you cannot connect a custom domain to a Function. Have you taken a look into that? People say you need to somehow use Firebase for that…
I’m also afraid it’s going to be difficult to serve the
/static/ folder with the same domain than the Function, but that can be solved using a custom
publicPath in Frontity:
And then just upload the
/static/ folder to a bucket which uses that domain.