Compare commits
2 Commits
be22792b6d
...
d79c9c48a9
| Author | SHA1 | Date | |
|---|---|---|---|
| d79c9c48a9 | |||
| 7f6c800ab0 |
@@ -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
@@ -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>
|
||||||
|
|||||||
+10
-9
@@ -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
|
||||||
+1
-1
@@ -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"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user