build: add Cloudflare static export and deploy config
This commit is contained in:
@@ -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'] });
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user