Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
dist/
node_modules/

Expand All @@ -6,3 +7,5 @@ node_modules/

script/comsol/words.json
script/comsol/words.md

.env
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"@vuepress/shared": "2.0.0-beta.63",
"@vuepress/utils": "2.0.0-beta.63",
"axios": "0.27.2",
"dotenv": "17.2.3",
"pnpm": "8.6.5",
"sass-loader": "13.3.2",
"vue": "3.3.4",
Expand Down
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions src/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@ import { defineUserConfig } from "@vuepress/cli";
import theme from "./theme";
import { searchPlugin } from '@vuepress/plugin-search'
import { path } from "@vuepress/utils";
import * as fs from 'fs'; // Necesario para verificar si el archivo `.env` existe
import * as dotenv from 'dotenv'; // Necesario para cargar el archivo de variables de entorno

const envPath = path.resolve(__dirname, '../../.env');
// Verifica si el archivo .env existe
if (fs.existsSync(envPath)) {
console.log(`Cargando variables desde: ${envPath}`);

// 2. Carga las variables desde el archivo .env
// Nota: Por defecto, dotenv NO sobrescribe variables de entorno ya existentes.
dotenv.config({ path: envPath });
} else {
console.log(`El archivo .env no existe en ${envPath}. Usando variables del entorno.`);
}

// Configuración dinámica del base path según la rama
// TODAS las ramas usan su propio base path (incluyendo la rama principal)
Expand Down