Netlify is used exclusively for deploying the Next.js frontend application. The NestJS backend, BullMQ workers, and Redis queue are not hosted on Netlify — they must be deployed separately using Docker Compose, a cloud container platform, or a PaaS provider such as Render. Once your backend is live and you know its public URL, you can connect your GitHub repository to Netlify and have the frontend deploying automatically on every push toDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Abbaddii-99/AI-Startup-Analyzer/llms.txt
Use this file to discover all available pages before exploring further.
main.
What Gets Deployed
Netlify builds and hosts the@ai-analyzer/frontend Next.js package from the monorepo. The build output is placed at apps/frontend/.next. The netlify.toml file at the repository root configures the build command, publish directory, and base directory so Netlify understands the monorepo layout without any manual UI configuration.
Netlify must be able to resolve
NEXT_PUBLIC_API_URL at build time because Next.js inlines public environment variables during the build step. Set this variable in the Netlify UI under Site configuration → Environment variables before triggering your first production build, and redeploy any time the backend URL changes.Step-by-Step Deployment
Log in to app.netlify.com and click Add new site → Import an existing project. Select GitHub as the Git provider, authorise Netlify if prompted, then choose the
AI-Startup-Analyzer repository.Netlify will detect the
netlify.toml at the repository root and pre-fill the build settings automatically. Verify they match the values below before continuing:. (repository root)pnpm --filter @ai-analyzer/frontend buildapps/frontend/.nextBefore clicking Deploy, navigate to Advanced build settings → Environment variables (or add it later under Site configuration → Environment variables) and add the following variable:
NEXT_PUBLIC_API_URLhttps://api.example.comThis value is baked into the Next.js bundle at build time and tells the frontend where to send API requests.
Do not include a trailing slash in
NEXT_PUBLIC_API_URL. The frontend constructs request paths such as /auth/login and prepends this base URL directly.Click Deploy site. Netlify will clone the repository, install dependencies using
pnpm, run the build command, and publish the output from apps/frontend/.next. The first build typically takes two to four minutes.Continuous Deployment
After the initial setup, Netlify automatically triggers a new build and deployment every time you push to the branch you selected during setup (typicallymain). Pull request previews are also created for every open PR, giving you a unique URL to review frontend changes before merging.