# Next.js Environment Variables Documentation # https://nextjs.org/docs/app/guides/environment-variables # # ! Variables starting with NEXT_PUBLIC_ will be bundled into client-side code. # ! Be careful not to expose sensitive information. # 官方文档:Next.js - 环境变量 # https://nextjs.org/docs/app/guides/environment-variables # # ! 以 NEXT_PUBLIC_ 开始的变量名称将会被打包进客户端代码,请注意敏感信息的泄露 # ================================= 🌟 REQUIRED VARIABLES / 必填环境变量 🌟 ================================= # # Only need to configure in one env file for each environment (development/production) # e.g., for development, configure in either .env.development.local / .env.development / .env # # 必填环境变量,只要保证所处的环境(development/production)用的的 env 文件,有一个填了即可 # 如 development 环境下,只需要保证 .env.development.local / .env.development / .env 三者中有一个文件配置了变量即可 # Database driver / 数据库驱动,支持 sqlite 和 postgresql DB_DRIVER=sqlite # Database connection URL / 数据库连接字符串 DB_CONNECTION_URL=file:./sqlite.db # Base URL of the application origin # Must be correct for authentication to work # Examples: http://localhost:3000, https://bmm.lccl.cc # See FAQ: https://github.com/Y80/bmm/blob/main/README.md#-常见问题 # # 访问应用的 URL 中的 origin 部分,若配置错误会导致登录系统不可用 # 示例:http://localhost:3000、https://bmm.lccl.cc # 也可参考 https://github.com/Y80/bmm/blob/main/README.md#-常见问题 AUTH_URL=http://localhost:3000 # ! Secret key for encryption / 加密令牌用到的密钥,请及时替换随机字符串 AUTH_SECRET=baf084f4-449b-42fe-9fc2-c8408065420c # ================================================================================ # ================================= 🌙 OPTIONAL VARIABLES / 选填环境变量 🌙 =================================== # # Configure as needed / 按照实际所需选择配置 # Website name and logo / 网站名称、网站图标 # NEXT_PUBLIC_WEBSITE_NAME=BMM # NEXT_PUBLIC_WEBSITE_LOGO=/logo.svg # GitHub OAuth credentials / 如果需要使用 Github OAuth 登录,需要配置 Github OAuth APP 相关环境变量 # The example below only works for http://localhost:PORT, replace with your own for production # 下面给出的这对配置仅能用于 http://localhost:PORT,请务必及时替换为你自己的配置 AUTH_GITHUB_ID=62519d5cf7e8098627cf AUTH_GITHUB_SECRET=cd46f95c2186109c65c6b0bb874a8da6a02868a3 # Proxy for fetching GitHub tokens / 获取 Github token 时用到的代理 # Can be left empty if the server can access GitHub directly # 如果部署应用的服务器访问 Github 没问题,可以不配 # FETCH_GITHUB_TOKEN_PROXY=https://api.lcll.cc/github/proxy/login/oauth/access_token FETCH_GITHUB_TOKEN_PROXY=https://lcc-githuboauthproxy.web.val.run/login/oauth/access_token # Whether the deployment platform is serverless / 要部署的平台是否为 Serverless 环境 # SERVERLESS=1 # Disable Next.js telemetry collection / 禁用 Next.js 自动收集遥测数据 NEXT_TELEMETRY_DISABLED=1 # ================================================================================