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.
I’m not new neither expert with Frontity, but just would like to know if I can just get the files from the build folder and place inside my webspace in a host and that’s it.
If not, and someone can give me the directions. i really appreciate.
Kind regards,
Fernando
hendrys.tobar2
Yes, well, Kind of. You would have to copy them to your host directory but, also, you will need to run a nodeJS instance and have some code to run. I use something like this (assuming you add your code in a “build” directory"):
//Include your server file. Frontity generates a server.js file
var frontity = require("./build/server").default;
var http = require("http");
var server = http.createServer(frontity);
//Use 80 or some available port
server.listen("80", "your.domain.com", () => {
console.log(`Server running at http://your.domain.com:80/`);
});