build: add Cloudflare static export and deploy config

This commit is contained in:
2026-10-13 12:54:06 +03:00
parent b9eddc33ee
commit 4a5c54e922
11 changed files with 369 additions and 4 deletions

View File

@@ -321,7 +321,7 @@ const siteConfigSchema = z.object({
if (site.environment === 'preview' && site.canonicalUrl !== 'https://portfolio.localhost/') {
context.addIssue({ code: 'custom', message: 'Preview canonical URL must be exactly https://portfolio.localhost/.', path: ['canonicalUrl'] });
}
if (site.environment === 'production') {
if (site.environment === 'production' && site.canonicalUrl !== 'https://lucapislaru.ro/') {
context.addIssue({ code: 'custom', message: 'Production hostname is not approved.', path: ['canonicalUrl'] });
}
});