Skip to content

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.

InformationDetails
Repositorygithub.com/lebachhiep/netproxy-index-v2
StackNext.js 16, React 19.2, TypeScript 5.x, Tailwind CSS 4.0
Languages14 languages (next-intl)
Dev port3000
Terminal window
git clone https://github.com/lebachhiep/netproxy-index-v2.git
cd netproxy-index-v2
Terminal window
# Using pnpm (recommended)
pnpm install
# Or npm
npm install
# Or yarn
yarn install

Copy the .env.example file to .env.local:

Terminal window
cp .env.example .env.local

Contents of the .env.local file:

NEXT_PUBLIC_API_BASE_URL=https://api.prx.network
VariableDescription
NEXT_PUBLIC_API_BASE_URLAPI Backend URL. Default: https://api.prx.network
Terminal window
pnpm dev

Visit http://localhost:3000 to see the result.

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 languages

Replace the image files in the public/images/ directory.

Edit the CSS variables in app/globals.css.

ComponentDescription
HeaderTop navigation bar
HeroMain banner introducing your service
PricingProxy plan pricing table
FAQsFrequently asked questions
ContactContact information
TrustedByPartner / customer logos
FooterPage footer
  1. Go to Cloudflare Pages Dashboard
  2. Click Create a projectConnect to Git
  3. Select the netproxy-index-v2 repository
  4. Configure:
    • Build Command: npx @cloudflare/next-on-pages@1
    • Build Output Directory: .vercel/output/static
  5. Add Compatibility Flags: nodejs_compat
  6. Add environment variables:
    • NEXT_PUBLIC_API_BASE_URL = https://api.prx.network
  7. Click Save and Deploy
Terminal window
# Build the project
npx @cloudflare/next-on-pages@1
# Deploy
npx wrangler pages deploy .vercel/output/static --project-name=my-proxy-landing
  1. Push the source code to GitHub
  2. Import the repository on vercel.com
  3. Vercel automatically detects Next.js — no additional configuration needed
  4. Add the NEXT_PUBLIC_API_BASE_URL environment variable
  5. Deploy

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.

After deploying, you need to:

  1. Configure a custom domain on Cloudflare Pages / Vercel
  2. Point DNS to the hosting provider
  3. Ensure SSL/HTTPS is working

After deploying, verify the following:

  1. Visit the Landing Page domain → you should see the introduction page
  2. Language switching works
  3. Dark mode works
  4. CTA buttons point to the correct Console URL
  5. Responsive design on mobile