Nextjs Forum

screenshot of Nextjs Forum
nextjs
react

The Next.js Discord server indexed in the web

Overview

This document provides guidance on setting up a Discord bot that indexes posts and a front-end app. It covers installing dependencies, configuring environment variables, and creating .env files. Specific environment variables for both the web app and bot app are outlined, along with their descriptions and requirements.

Features

  • DATABASE_URL: Read-only connection string to access the DB for querying posts and messages (required)
  • REVALIDATE_SECRET: Secret enabling remote revalidations to the app cache, also used in the bot app (required)
  • NEXT_PUBLIC_BASE_URL: Host URL of the app (optional)
  • DISCORD_BOT_TOKEN: Bot token required for the bot to function
  • DISCORD_CLIENT_ID: Client ID of the bot app
  • DEV_GUILD_ID: Discord server ID for registering dev commands (optional)
  • PUBLIC_PROFILE_ROLE_ID: Role ID for making Discord profiles public
  • HELPER_ROLE_ID: Role ID allowing selection of answers on behalf of the owner
  • MODERATOR_ROLE_ID: Role ID for setting moderator status and answer selection
  • REGULAR_MEMBER_ROLE_ID: Role ID added to users upon reaching certain points milestone
  • INDEXABLE_CHANNEL_IDS: Comma-separated list of forum channels to index
  • MOD_LOG_CHANNEL_ID: Channel ID for logging activities for moderators
  • DATABASE_URL: Connection string for DB access
nextjs
Next.js

Next.js is a React-based web framework that enables server-side rendering, static site generation, and other powerful features for building modern web applications.

react
React

React is a widely used JavaScript library for building user interfaces and single-page applications. It follows a component-based architecture and uses a virtual DOM to efficiently update and render UI components