feat: refine portfolio content, contact, and supporting media
This commit is contained in:
@@ -98,6 +98,7 @@ const readManifest = async (repositoryRoot) => {
|
||||
|
||||
const assetReferences = (content) => {
|
||||
const references = [];
|
||||
if (content.contact?.avatarAssetId !== undefined) references.push(content.contact.avatarAssetId);
|
||||
const projects = content.projects;
|
||||
if (typeof projects !== 'object' || projects === null || Array.isArray(projects)) {
|
||||
throw new Error('Portfolio content must contain project collections.');
|
||||
|
||||
Reference in New Issue
Block a user