Additional Topics…
Admin API
Node.js script to clear cache:
const org = 'lumenbrite-dev-training';
const site = 'www-site';
const branch = 'main'
const authToken = '';
const url = `https://admin.hlx.page/cache/${org}/${site}/${branch}/`;
const options = {
method: 'POST',
headers: {
'x-auth-token': authToken
}
};
try {
const response = await fetch(url, options);
const data = await response.text();
console.log(response.status, data);
} catch (error) {
console.error(error);
}
Importer
In your EDS project, run:
npx aem importer
Reference Links
Set Up AEM Sites as a Content Source
SEO and URL Management Best Practices for Adobe Experience Manager as a Cloud Service