From 3954fec4e04d881a3b3fca9b145702324773c67e Mon Sep 17 00:00:00 2001 From: Felipe Moreira dos Santos Date: Fri, 26 Dec 2025 10:44:59 -0300 Subject: [PATCH] fix: created 404.html when uploading the page --- .github/workflows/deploy.yaml | 4 ++++ src/components/NavBar.vue | 2 +- src/locales/en-US.json | 2 +- src/locales/pt-BR.json | 2 +- vite.config.ts | 1 + 5 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 2769190..1413e4c 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -71,6 +71,10 @@ jobs: - name: Build Project run: npm run build + - name: Create 404 page + run: | + cp ./dist/index.html ./dist/404.html + - name: Upload build artifacts uses: actions/upload-pages-artifact@v3 with: diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index fe3b41f..d23e1db 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -10,7 +10,7 @@ const theme = useTheme() RevzIT -
+
{{ $t('nav.home') }} {{ $t('nav.about') }} {{ $t('nav.projects') }} diff --git a/src/locales/en-US.json b/src/locales/en-US.json index b89cd70..e6c64a6 100644 --- a/src/locales/en-US.json +++ b/src/locales/en-US.json @@ -40,7 +40,7 @@ "adocli": { "title": "adocli", "subtitle": "Azure DevOps CLI — manage your Azure DevOps resources from the command line.", - "text": "I started this project to help myself and others manage Azure DevOps resources from the command line. It is built using Python and the Click library. It is still in early development, but it already has some basic features implemented. Feel free to check it out and contribute!" + "text": "I started this project to help myself and others manage Azure DevOps resources from the command line. It is built using Golang and the Click library. It is still in early development, but it already has some basic features implemented. Feel free to check it out and contribute!" } } }, diff --git a/src/locales/pt-BR.json b/src/locales/pt-BR.json index 10cfdc5..b9e3146 100644 --- a/src/locales/pt-BR.json +++ b/src/locales/pt-BR.json @@ -40,7 +40,7 @@ "adocli": { "title": "adocli", "subtitle": "Azure DevOps CLI — gerencie seus recursos do Azure DevOps a partir da linha de comando.", - "text": "Comecei este projeto para ajudar a mim mesmo e a outros a gerenciar recursos do Azure DevOps a partir da linha de comando. É construído usando Python e a biblioteca Click. Ainda está em desenvolvimento inicial, mas já possui alguns recursos básicos implementados. Sinta-se à vontade para conferir e contribuir!" + "text": "Comecei este projeto para ajudar a mim mesmo e a outros a gerenciar recursos do Azure DevOps a partir da linha de comando. É construído usando Golang e a biblioteca Click. Ainda está em desenvolvimento inicial, mas já possui alguns recursos básicos implementados. Sinta-se à vontade para conferir e contribuir!" } } }, diff --git a/vite.config.ts b/vite.config.ts index 408e3f1..a05fa14 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -6,6 +6,7 @@ import vueJsx from '@vitejs/plugin-vue-jsx' import vueDevTools from 'vite-plugin-vue-devtools' export default defineConfig({ + base: '/', plugins: [vue(), vueJsx(), vueDevTools()], resolve: { alias: {