Hi, Frontity community,
I need help to bundle my frontity project to my WordPress site.
After running npx frontity build
, the Frontity project contents don’t show up on my WordPress website.
WordPress site URL: wp.emberville.com
frontity.settings.js:
const settings = {
name: "Emberville",
state: {
frontity: {
url: "https://wp.emberville.com/",
title: "Emberville",
description: "Frontity installation to Emberville Wordpress page.",
},
},
packages: [
{
name: "emberville-theme",
state: {
theme: {
menu: [
["Get Started", "/get-started"],
["Testimonials", "/testimonials"],
["About", "/about"],
["Contact", "/contact"],
["Terms of Service", "/terms-of-service"],
["Privacy Policy", "/privacy-policy"],
],
},
featured: {
showOnList: false,
showOnPost: false,
},
},
},
{
name: "@frontity/wp-source",
state: {
source: {
api: "https://public-api.wordpress.com/wp/v2/sites/wp.emberville.com",
},
},
},
"@frontity/tiny-router",
"@frontity/html2react",
],
};
export default settings;
This what I see on terminal when I run `npx frontity build:
- mode: production
- target: both
- public-path: /static/
Building es5 bundle
Building module bundle
Building server bundle
What I expect is after I run the build command, my frontity project overwrites what I have on my wordpress.com. Let me know if this is wrong.
Thank yoU!