Hello @mburridge , thanks for your answer.
Well, I tried using two different package themes, everything seemed two work ok in localhost until I deployed to Vercel. This is my settings file. If I replace https://andes.alexfernando.vercel.app/ by http://localhost:3000/ everthing works in my localhost, but I understand that I need to change the matching URL when I deploy. This is my trial deployment link: https://andes.alexfernando.vercel.app/ where you can see that the Spanish version doesn’t work.
const settings = [
//english site
{
"name": "andes-headless-english",
"match": ["https://andes.alexfernando.vercel.app/"],
"state": {
"frontity": {
"url": "https://test.frontity.org",
"title": "Andes Website English",
"description": "A website for the ONG Andes English Version"
}
},
"packages": [
{
"name": "andes-theme",
},
{
"name": "@frontity/wp-source",
"state": {
"source": {
"api": "https://en.andescusco.info/wp-json/",
"params": {
per_page: 100,
},
"postTypes": [
{
type: "singlesearch",
endpoint: "singlesearch",
archive: "/search",
},
{
type: "cardimage",
endpoint: "cardimage",
archive: "cardimage"
},
{
type: "toolkitposts",
endpoint: "toolkitposts",
archive: "alltoolkit"
},
],
"taxonomies": [
{
taxonomy: "typeofpublication",
endpoint: "typeofpublication",
postTypeEndpoint: "singlesearch",
params: {
per_page: 100,
_embed: true
}
}
]
},
}
},
"@frontity/tiny-router",
"@frontity/html2react",
"frontity-contact-form-7"
]
},
//SPANISH SITE
{
"name": "andes-headless-spanish",
"match": ["https://andes.alexfernando.vercel.app/es-(.*)?$"],
"state": {
"frontity": {
"url": "https://test.frontity.org",
"title": "Andes Spanish",
"description": "Configuration for Spanish Site"
}
},
"packages": [
{
"name": "andes-spanish-theme",
},
{
"name": "@frontity/wp-source",
"state": {
"source": {
"api": "https://es.andescusco.info/wp-json",
"params": {
per_page: 100,
},
"postTypes": [
{
type: "singlesearch",
endpoint: "singlesearch",
archive: "/es-search"
},
{
type: "cardimage",
endpoint: "cardimage",
archive: "cardimage"
},
{
type: "toolkitposts",
endpoint: "toolkitposts",
archive: "alltoolkit"
},
],
"taxonomies": [
{
taxonomy: "typeofpublication",
endpoint: "typeofpublication",
postTypeEndpoint: "singlesearch",
params: {
_embed: true
}
}
]
},
}
},
"@frontity/tiny-router",
"@frontity/html2react",
"frontity-contact-form-7"
]
}
];
export default settings;
Thanks in advance.