diff --git "a/.next/server/chunks/617.js" "b/.next/server/chunks/617.js" --- "a/.next/server/chunks/617.js" +++ "b/.next/server/chunks/617.js" @@ -20,7 +20,7 @@ ${e} `}}detectInvalidHandlebarsPatterns(e){let t=[];return/\w+\s*=\s*\(\s*>\s*[\w-]+\s*\)/g.test(e)&&t.push({error:"Invalid syntax: Using (> partial) as parameter value",suggestion:"Use string-based dynamic partials: content=\"partial-name\" then {{> (lookup this 'content')}}"}),/\{\{\s*>\s*\(\s*>\s*[\w-]+\s*\)\s*\}\}/g.test(e)&&t.push({error:"Invalid syntax: Double partial reference {{> (> partial)}}",suggestion:"Use {{> partialName}} for static partials or {{> (lookup data 'partialName')}} for dynamic"}),/\{\{\s*>\s*[\w-]+\s+\w+\s*=\s*[^"'\s}][^}\s]*(?:\s|}})/g.test(e)&&t.push({error:"Missing quotes in parameter values",suggestion:'Wrap parameter values in quotes: title="My Title" not title=My Title'}),t}async processCSS(e,t){let r=e.content;return r=await this.processUrlReferences(r,t),{path:e.path,content:r,mimeType:e.mimeType}}async processJS(e){let t=e.content;return{path:e.path,content:t,mimeType:e.mimeType}}async processInternalReferences(e){let t=await this.vfs.listDirectory(this.projectId,"/"),r=e;for(let e of[/href="([^"]+)"/g,/src="([^"]+)"/g,/href='([^']+)'/g,/src='([^']+)'/g])r=r.replace(e,(e,r)=>{if(r.startsWith("http")||r.startsWith("data:")||r.startsWith("//"))return e;let i=this.normalizePath(r);return t.some(e=>e.path===i),e});return r}async processUrlReferences(e,t){return e.replace(/url\(['"]?([^'")]+)['"]?\)/g,(e,r)=>{if(r.startsWith("http")||r.startsWith("data:")||r.startsWith("//")||r.startsWith("blob:"))return e;let i=this.normalizePath(r),s=t.get(i);return s?`url('${s}')`:e})}normalizePath(e){return(e.startsWith("./")&&(e=e.slice(2)),e.startsWith("/")||(e="/"+e),e.includes(".")||e.endsWith("/"))?e:e+".html"}generateRoutes(e){return e.filter(e=>"html"===e.type).map(e=>{let t=e.content.match(/