feat: add environment-specific build configurations and documentation for production and test deployments

This commit is contained in:
azeeee05
2026-09-05 17:50:24 +05:30
parent 4323fdebbc
commit 4630e7fe89
5 changed files with 92 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
NEXT_PUBLIC_LOGIN_URL=https://app.docqube.com/login
+1
View File
@@ -0,0 +1 @@
NEXT_PUBLIC_LOGIN_URL=https://docqubeapp-test.maskantech.in/login
+28
View File
@@ -1,3 +1,15 @@
# DocQube Landing Page
DocQube is an all-in-one document management and AI platform that unites four core products:
- **Drive**: Document management + AI
- **PDF Editor**: True-reflow editing
- **Workflows**: Route, approve, sign
- **Sign**: Verified e-signatures
This repository contains the Next.js marketing landing page built to showcase DocQube's solutions for various audiences including Enterprise, Legal, Real Estate, and Operations.
---
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
## Getting Started
@@ -34,3 +46,19 @@ You can check out [the Next.js GitHub repository](https://github.com/vercel/next
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
## Environment & Build Scripts
This project is configured with multiple environments for seamless deployments and testing.
### Environment Variables
- `.env` / `.env.local`: Used for local development (default points to `http://localhost:5173`).
- `.env.test`: Used for test environments (points to `http://localhost:5173`).
- `.env.production`: Used for the live production build (points to `https://app.docqube.com/login`).
**Note:** Environment files (`.env*`) are ignored in Git to keep variables secure. Make sure you create them locally if you clone this repository.
### Build Scripts
- `npm run dev`: Starts the local development server (uses `.env` / `.env.local`).
- `npm run build:test`: Uses `dotenv-cli` to load `.env.test` and runs the Next.js build.
- `npm run build:production`: Uses `dotenv-cli` to load `.env.production` and runs the Next.js build.
+59
View File
@@ -20,6 +20,7 @@
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"dotenv-cli": "^11.0.0",
"eslint": "^9",
"eslint-config-next": "16.3.4",
"tailwindcss": "^4",
@@ -3066,6 +3067,64 @@
"node": ">=0.10.0"
}
},
"node_modules/dotenv": {
"version": "17.4.2",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.4.2.tgz",
"integrity": "sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==",
"dev": true,
"license": "BSD-2-Clause",
"engines": {
"node": ">=12"
},
"funding": {
"url": "https://dotenvx.com"
}
},
"node_modules/dotenv-cli": {
"version": "11.0.0",
"resolved": "https://registry.npmjs.org/dotenv-cli/-/dotenv-cli-11.0.0.tgz",
"integrity": "sha512-r5pA8idbk7GFWuHEU7trSTflWcdBpQEK+Aw17UrSHjS6CReuhrrPcyC3zcQBPQvhArRHnBo/h6eLH1fkCvNlww==",
"dev": true,
"license": "MIT",
"dependencies": {
"cross-spawn": "^7.0.6",
"dotenv": "^17.1.0",
"dotenv-expand": "^12.0.0",
"minimist": "^1.2.6"
},
"bin": {
"dotenv": "cli.js"
}
},
"node_modules/dotenv-expand": {
"version": "12.0.3",
"resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-12.0.3.tgz",
"integrity": "sha512-uc47g4b+4k/M/SeaW1y4OApx+mtLWl92l5LMPP0GNXctZqELk+YGgOPIIC5elYmUH4OuoK3JLhuRUYegeySiFA==",
"dev": true,
"license": "BSD-2-Clause",
"dependencies": {
"dotenv": "^16.4.5"
},
"engines": {
"node": ">=12"
},
"funding": {
"url": "https://dotenvx.com"
}
},
"node_modules/dotenv-expand/node_modules/dotenv": {
"version": "16.6.1",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz",
"integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==",
"dev": true,
"license": "BSD-2-Clause",
"engines": {
"node": ">=12"
},
"funding": {
"url": "https://dotenvx.com"
}
},
"node_modules/dunder-proto": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
+3
View File
@@ -5,6 +5,8 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"build:production": "dotenv -e .env.production -- next build",
"build:test": "dotenv -e .env.test -- next build",
"start": "next start",
"lint": "eslint"
},
@@ -21,6 +23,7 @@
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"dotenv-cli": "^11.0.0",
"eslint": "^9",
"eslint-config-next": "16.3.4",
"tailwindcss": "^4",