Mi App Números is pre-configured to deploy to GitHub Pages via theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/jonathino2590/mi-app-numeros/llms.txt
Use this file to discover all available pages before exploring further.
gh-pages package. The homepage field in package.json points to https://jonathino2590.github.io/mi-app-numeros, and the matching base: '/mi-app-numeros/' option in vite.config.js ensures all asset URLs resolve correctly under that sub-path. A single command builds the app and publishes it.
Prerequisites
- A GitHub repository named
mi-app-numerosunder your account. - Node.js 18 or newer installed locally.
- All dependencies installed — the
gh-pagespackage is already listed as a devDependency and is installed automatically when you runnpm install.
Deploy to GitHub Pages
Set the homepage
Verify that the If you fork the repository under a different username or rename the repo, update this value before deploying.
homepage field in package.json matches https://<username>.github.io/<repo-name>. For the default repository this is already set correctly:package.json
Run the deploy command
From the project root, run the deploy script:The
predeploy hook in package.json runs npm run build first, producing an optimized static bundle in the dist/ directory. Once the build succeeds, gh-pages -d dist pushes the contents of dist/ to the gh-pages branch of your repository. No manual git commands are required.package.json (scripts)
Enable GitHub Pages
After the first deploy, configure GitHub Pages to serve from the
gh-pages branch:- Open your repository on GitHub.
- Go to Settings → Pages.
- Under Source, choose Deploy from a branch.
- Select the
gh-pagesbranch and the/ (root)folder. - Click Save.
Manual Build
To create a production build without publishing it, run:dist/ directory. You can inspect or test the output locally using the preview server:
vite preview serves the contents of dist/ on a local port (default http://localhost:4173) so you can verify the production build before deploying.