Deploy Landing Page
The Landing Page (netproxy-index-v2) is your proxy product introduction page. This is where you attract potential customers and direct them to the Console to register.
Technical Information
Section titled “Technical Information”| Information | Details |
|---|---|
| Repository | github.com/lebachhiep/netproxy-index-v2 |
| Stack | Next.js 16, React 19.2, TypeScript 5.x, Tailwind CSS 4.0 |
| Languages | 14 languages (next-intl) |
| Dev port | 3000 |
Step 1: Clone the Source Code
Section titled “Step 1: Clone the Source Code”git clone https://github.com/lebachhiep/netproxy-index-v2.gitcd netproxy-index-v2Step 2: Install Dependencies
Section titled “Step 2: Install Dependencies”# Using pnpm (recommended)pnpm install
# Or npmnpm install
# Or yarnyarn installStep 3: Configure Environment Variables
Section titled “Step 3: Configure Environment Variables”Copy the .env.example file to .env.local:
cp .env.example .env.localContents of the .env.local file:
NEXT_PUBLIC_API_BASE_URL=https://api.prx.network| Variable | Description |
|---|---|
NEXT_PUBLIC_API_BASE_URL | API Backend URL. Default: https://api.prx.network |
Step 4: Run Locally
Section titled “Step 4: Run Locally”pnpm devVisit http://localhost:3000 to see the result.
Step 5: Customize the Interface
Section titled “Step 5: Customize the Interface”Change Display Content
Section titled “Change Display Content”Edit the JSON files in the messages/ directory for each language:
messages/├── en.json # English├── vi.json # Vietnamese├── zh.json # Chinese├── ja.json # Japanese└── ... # 14 languagesChange Images
Section titled “Change Images”Replace the image files in the public/images/ directory.
Change Colors
Section titled “Change Colors”Edit the CSS variables in app/globals.css.
Main Customizable Components
Section titled “Main Customizable Components”| Component | Description |
|---|---|
| Header | Top navigation bar |
| Hero | Main banner introducing your service |
| Pricing | Proxy plan pricing table |
| FAQs | Frequently asked questions |
| Contact | Contact information |
| TrustedBy | Partner / customer logos |
| Footer | Page footer |
Deploy to Cloudflare Pages (Recommended)
Section titled “Deploy to Cloudflare Pages (Recommended)”Method 1: Connect GitHub (Recommended)
Section titled “Method 1: Connect GitHub (Recommended)”- Go to Cloudflare Pages Dashboard
- Click Create a project → Connect to Git
- Select the
netproxy-index-v2repository - Configure:
- Build Command:
npx @cloudflare/next-on-pages@1 - Build Output Directory:
.vercel/output/static
- Build Command:
- Add Compatibility Flags:
nodejs_compat - Add environment variables:
NEXT_PUBLIC_API_BASE_URL=https://api.prx.network
- Click Save and Deploy
Method 2: Manual Deploy with Wrangler
Section titled “Method 2: Manual Deploy with Wrangler”# Build the projectnpx @cloudflare/next-on-pages@1
# Deploynpx wrangler pages deploy .vercel/output/static --project-name=my-proxy-landingDeploy to Vercel
Section titled “Deploy to Vercel”- Push the source code to GitHub
- Import the repository on vercel.com
- Vercel automatically detects Next.js — no additional configuration needed
- Add the
NEXT_PUBLIC_API_BASE_URLenvironment variable - Deploy
Link the Landing Page to the Console
Section titled “Link the Landing Page to the Console”The Landing Page needs to contain links pointing to your Console. Make sure to update:
- The “Get Started” / “Sign Up” button to point to your Console URL
- The “Dashboard” / “Login” button to point to your Console URL
- Any other CTAs that direct users to the Console
These links are typically found in the language files (messages/) or the Header/Hero components.
Domain Configuration
Section titled “Domain Configuration”After deploying, you need to:
- Configure a custom domain on Cloudflare Pages / Vercel
- Point DNS to the hosting provider
- Ensure SSL/HTTPS is working
Verify Successful Deployment
Section titled “Verify Successful Deployment”After deploying, verify the following:
- Visit the Landing Page domain → you should see the introduction page
- Language switching works
- Dark mode works
- CTA buttons point to the correct Console URL
- Responsive design on mobile
Next Steps
Section titled “Next Steps”- Domain & Branding Configuration — register your domain and set up branding
- Payment Setup — set up payment gateways for your users