Skip to main content

Overview

The game configuration system allows you to:
  • Create unlimited game hosting pages
  • Configure unique pricing per game
  • Set different billing periods (hourly, daily, monthly, lifetime)
  • Customize features and specifications
  • Define multiple server locations
  • Auto-generate SEO-friendly URLs
All game configs are stored in: config/games/

Quick Start

The fastest way to add a new game:
1

Copy the minimal template

Navigate to config/games/ and copy the minimal template:
# Copy TEMPLATE-MINIMAL.ts to your game name
cp TEMPLATE-MINIMAL.ts yourgame.ts
Example: For Rust hosting, create rust.ts
2

Fill in the Basics

Open your new file and replace placeholders:
import { GameConfig } from './types';

export const rust: GameConfig = {
  // Basic Info
  name: "Rust",                    // Replace YOUR_GAME_NAME
  slug: "rust",                    // Replace your-game
  description: "Survival game",    // Replace description
  
  // Visuals
  logo: "/assets/games/rust.png",  // Your logo
  color: "#ce422b",                // Rust's brand color
  
  // Pricing (simple version)
  pricing: {
    mode: "manual",
    plans: [
      {
        name: "Starter",
        specs: { ram: "4GB", slots: "50" },
        prices: {
          monthly: { amount: "10", url: "https://billing.yoursite.com/rust-starter" }
        }
      }
    ]
  }
};
3

Register the Game

Add your game to config/games/index.ts:
Index.ts
import { rust } from './rust';

export const games = {
  minecraft,
  fivem,
  rust,        // Add your game here
};
4

Test It!

Visit: http://localhost:3000/games/rustYour game page is now live! 🎉

Complete Configuration

For a full-featured game page, use the complete template structure.

Basic Information