Corpointa ships with aDocumentation 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.
netlify.toml configuration file that handles the one critical requirement for deploying a single-page application: ensuring that all URL paths serve index.html so that TanStack Router can take over client-side navigation.
netlify.toml
Thenetlify.toml at the project root configures a catch-all redirect rule:
netlify.toml
status = 200 is important — it tells Netlify to serve index.html as a rewrite (not a redirect), so the URL in the browser’s address bar stays as-is. When a user navigates directly to /inventory/products or refreshes on a deep link, Netlify delivers index.html and TanStack Router reads the path and renders the correct route on the client.
Deploy Steps
Push your code to a Git repository
Make sure your project is pushed to a GitHub or GitLab repository. Netlify connects directly to your Git provider to trigger builds on every push.
Connect the repository to Netlify
Log in to the Netlify dashboard, click Add new site → Import an existing project, and select your Git provider. Choose the Corpointa repository from the list.
Add environment variables
Go to Site configuration → Environment variables and add any required keys. If you are using Clerk authentication, add:
CORS Configuration
Because the Corpointa frontend is served from a Netlify domain (e.g.,https://corpointa.netlify.app) while your backend API lives on a different origin, you must configure CORS on the backend to allow requests from that Netlify domain. Add the deployed Netlify URL to your API’s allowed-origins list. If you use a custom domain, add that instead.
Without the correct CORS headers, all API calls from the browser will be blocked, even though the frontend itself loads fine.
Alternative Platforms
Corpointa can be deployed to any static hosting platform that supports SPA redirect rules. Each platform has its own convention for this configuration:Vercel
Add a
vercel.json file to the project root with rewrite rules:vercel.json
Cloudflare Pages
Add a
_redirects file inside the dist/ output directory (or the project root, depending on your build setup):AWS S3 + CloudFront
In your S3 static website hosting settings, set the Error document to
index.html. In CloudFront, configure a custom error response: HTTP 403/404 → return index.html with HTTP 200.