Compare commits

...

4 Commits

Author SHA1 Message Date
avanzato 10e910eb6b Release PROD: Revisão Logo, Favicon, Robots
Deploy PROD Avanzato / deploy-prod (push) Successful in 34s
2026-05-31 00:58:08 -03:00
avanzato 9885f59b06 Merge remote-tracking branch 'origin/develop' 2026-05-31 00:58:01 -03:00
avanzato d79c9c48a9 Log release HML: Revisão Logo, Favicon, Robots
Deploy HML Avanzato / deploy-hml (push) Successful in 33s
2026-05-31 00:57:46 -03:00
avanzato 7f6c800ab0 Revisão Logo, Favicon, Robots 2026-05-31 00:57:45 -03:00
5 changed files with 48 additions and 14 deletions
+4
View File
@@ -40,3 +40,7 @@ Thumbs.db
# Scripts de deploy local # Scripts de deploy local
scripts/.env.local scripts/.env.local
# ZIPs internos (nunca commite!)
*.zip
avanzato-*.zip
+9 -4
View File
@@ -11,6 +11,9 @@
var h = location.hostname; var h = location.hostname;
var IS_PROD = h === 'avanzato.com.br' || h === 'www.avanzato.com.br'; var IS_PROD = h === 'avanzato.com.br' || h === 'www.avanzato.com.br';
// Torna disponivel para outros scripts
window.__IS_PROD__ = IS_PROD;
// Se NAO for producao, desativa tracking globalmente // Se NAO for producao, desativa tracking globalmente
if (!IS_PROD) { if (!IS_PROD) {
window.__AVANZATO_ENV__ = h === 'hml.avanzato.com.br' ? 'homologation' : 'development'; window.__AVANZATO_ENV__ = h === 'hml.avanzato.com.br' ? 'homologation' : 'development';
@@ -105,9 +108,9 @@
<!-- BLOQUEAR INDEXACAO EM HOMOLOGACAO --> <!-- BLOQUEAR INDEXACAO EM HOMOLOGACAO -->
<script> <script>
(function() { (function() {
var hostname = window.location.hostname; // Usa IS_PROD ja definido no inicio do documento
if (hostname !== 'avanzato.com.br') { if (!window.__IS_PROD__) {
// Homologacao: bloquear indexacao // Homologacao/Desenvolvimento: bloquear indexacao
document.getElementById('meta-robots').setAttribute('content', 'noindex, nofollow'); document.getElementById('meta-robots').setAttribute('content', 'noindex, nofollow');
document.getElementById('meta-googlebot').setAttribute('content', 'noindex, nofollow'); document.getElementById('meta-googlebot').setAttribute('content', 'noindex, nofollow');
// Adicionar tambem X-Robots-Tag via meta http-equiv // Adicionar tambem X-Robots-Tag via meta http-equiv
@@ -115,7 +118,9 @@
meta.httpEquiv = 'X-Robots-Tag'; meta.httpEquiv = 'X-Robots-Tag';
meta.content = 'noindex, nofollow'; meta.content = 'noindex, nofollow';
document.head.appendChild(meta); document.head.appendChild(meta);
console.log('%c[SEO] Homologacao detectada - indexacao BLOQUEADA (noindex, nofollow)', 'background:#dc2626;color:#fff;font-weight:bold;padding:2px 6px;border-radius:3px'); console.log('%c[SEO] ' + (window.__AVANZATO_ENV__ || 'nao-producao') + ' - indexacao BLOQUEADA', 'background:#dc2626;color:#fff;font-weight:bold;padding:2px 6px;border-radius:3px');
} else {
console.log('%c[SEO] Producao - indexacao PERMITIDA (index, follow)', 'background:#16a34a;color:#fff;font-weight:bold;padding:2px 6px;border-radius:3px');
} }
})(); })();
</script> </script>
@@ -1,6 +1,6 @@
# Release HML # Release HML
Data: dom 31 mai 2026 00:28:41 -03 Data: dom 31 mai 2026 00:57:45 -03
Ambiente: Ambiente:
HML HML
@@ -12,23 +12,24 @@ Branch:
develop develop
Arquivos alterados antes do commit: Arquivos alterados antes do commit:
D infra/releases/2026-05-30_23-54-46_HML.md M .gitignore
?? .github/ M index.html
?? .gitignore D infra/releases/2026-05-31_00-28-41_HML.md
?? infra/releases/2026-05-31_00-28-41_HML.md M public/version.json
?? infra/releases/2026-05-31_00-57-45_HML.md
Status: Status:
Preparado para publicação Preparado para publicação
Commit: Commit:
cb08c53b 7f6c800a
Arquivos no commit: Arquivos no commit:
.github/workflows/README-CI-CD.md
.github/workflows/deploy.yml
.gitignore .gitignore
infra/releases/2026-05-30_23-54-46_HML.md index.html
infra/releases/2026-05-31_00-28-41_HML.md infra/releases/2026-05-31_00-28-41_HML.md
infra/releases/2026-05-31_00-57-45_HML.md
public/version.json
Status final: Status final:
Publicado no Gitea / aguardando pipeline HML Publicado no Gitea / aguardando pipeline HML
@@ -0,0 +1,24 @@
# Release PROD
Data: dom 31 mai 2026 00:58:08 -03
Ambiente:
PROD
Descrição:
Revisão Logo, Favicon, Robots
Branch:
main
Commit:
9885f59b
Último commit develop:
d79c9c48
Arquivos alterados no último commit:
Status:
Preparado para publicação em produção
+1 -1
View File
@@ -1,5 +1,5 @@
{ {
"version": "1.2.1", "version": "1.2.2",
"date": "2026-05-31", "date": "2026-05-31",
"environment": "auto-detect" "environment": "auto-detect"
} }