Corpointa is a Vite-powered application, which means only variables prefixed withDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/EricMartinez758/corpointa-frontend/llms.txt
Use this file to discover all available pages before exploring further.
VITE_ are statically inlined into the client bundle at build time. Any variable without that prefix stays server-side and is never accessible to browser code. Variables are accessed at runtime via import.meta.env.VITE_* — there is no process.env in the browser context.
Available Variables
| Name | Required | Default | Description |
|---|---|---|---|
VITE_CLERK_PUBLISHABLE_KEY | Optional | — | Clerk publishable key. Required if you are using Clerk-authenticated routes. Leave unset to disable Clerk integration. |
Setting Variables
Development — create a.env or .env.local file in the project root. Vite loads .env.local automatically and excludes it from version control by default (it is already in .gitignore).
Production — set variables directly in your hosting platform’s environment settings. For Netlify, go to Site configuration → Environment variables and add each key there. The values are injected at build time when Netlify runs pnpm build.
.env
Build Commands
The following scripts are defined inpackage.json:
| Command | What it does |
|---|---|
pnpm build | Runs tsc -b && vite build. TypeScript is type-checked first, then Vite bundles the application and writes output to dist/. |
pnpm preview | Serves the contents of dist/ locally on port 4173. Use this to verify the production build before deploying. |
pnpm dev | Starts the Vite dev server with HMR for local development. |
package.json:
package.json
Build Output
Vite outputs all compiled assets to thedist/ directory. The build uses TanStack Router’s automatic code-splitting (autoCodeSplitting: true in vite.config.ts), which means each route is emitted as a separate JavaScript chunk and loaded lazily on demand. This keeps the initial bundle size small — the user only downloads code for the pages they actually visit.
vite.config.ts
dist/ folder contains a static index.html entry point plus hashed asset files (*.js, *.css). It can be served by any static file host or CDN — no Node.js server is required at runtime.