Merge pull request 'fix: domain plausible' (#4) from feature/fix-plausible-domain into main

Reviewed-on: #4
This commit was merged in pull request #4.
This commit is contained in:
2026-06-15 21:08:32 -03:00
7 changed files with 27 additions and 8 deletions

View File

@@ -1,2 +1,2 @@
VITE_PLAUSIBLE_API=https://plausible.mtst.tec.br/api/event
VITE_PLAUSIBLE_DOMAIN=https://decoda.mtst.tec.br
VITE_PLAUSIBLE_DOMAIN=decoda.mtst.tec.br

View File

@@ -3,7 +3,7 @@ FROM node:20-alpine AS builder
WORKDIR /app
ARG GIT_COMMIT_HASH=unknown
ARG APP_VERSION=1.2.0
ARG APP_VERSION=1.2.1
ENV VITE_APP_VERSION=$APP_VERSION
ENV VITE_GIT_HASH=$GIT_COMMIT_HASH

View File

@@ -2,7 +2,7 @@
"name": "decoda",
"private": true,
"description": "Aplicação educacional desenvolvida para ensino de programação básica e letramento digital",
"version": "1.2.0",
"version": "1.2.1",
"main": "main.cjs",
"homepage": "./",
"type": "module",

View File

@@ -1,5 +1,5 @@
const PLAUSIBLE_API = import.meta.env.VITE_PLAUSIBLE_API || 'http://localhost/api/event';
const DOMAIN = import.meta.env.VITE_PLAUSIBLE_DOMAIN || 'myapp-dev';
const PLAUSIBLE_API = import.meta.env.VITE_PLAUSIBLE_API;
const DOMAIN = import.meta.env.VITE_PLAUSIBLE_DOMAIN;
const sendEvent = (payload) => {
const controller = new AbortController();

File diff suppressed because one or more lines are too long

View File

@@ -130,7 +130,7 @@ Registra visitas às páginas principais da plataforma.
| Variável | Development | Production |
|----------|-------------|-----------|
| `VITE_PLAUSIBLE_API` | `http://localhost/api/event` | Variável de ambiente (prod) |
| `VITE_PLAUSIBLE_DOMAIN` | `myapp-dev` | `https://decoda.mtst.tec.br` |
| `VITE_PLAUSIBLE_DOMAIN` | `myapp-dev` | `decoda.mtst.tec.br` |
| **Arquivo** | `app/.env` | `app/.env.production` |
## Tratamento de falhas

View File

@@ -3,6 +3,25 @@ sidebar_position: 1
title: "1.2.0"
---
# 1.2.1
**Data de lançamento:** 15/06/2026
---
## Correção
### Domain de prod para Plausible
Correção na configuração de Domain Name do Plausible nas variáveis de ambiente para o build do app Decoda.
A configuração anterior continha o protocolo (https), não sendo reconhecido pela API da instância auto-hospedada do Plausible.
## Técnico
Arquivos de configuração modificado:
- `app/.env.production` (produção)
# 1.2.0
**Data de lançamento:** 13/06/2026