logo
  • Guide
  • Config
  • Plugin
  • API
  • Examples
  • Community
  • Modern.js 2.x Docs
  • English
    • 简体中文
    • English
    • Introduction
      Plugin System
      CLI Plugins
      CLI Plugin API
      Life Cycle
      Plugin Migration
      Runtime Plugins
      Plugin API
      Life Cycle
      Plugin Migration
      Official Plugins
      CLI Plugins
      BFF Plugin
      SSG Plugin
      styled-components Plugin
      📝 Edit this page
      Previous pageCLI PluginsNext pageSSG Plugin

      #BFF Plugin

      In a Modern.js application, developers can define API files under the api/lambda directory and export API functions using the BFF plugin. In the frontend code, these API functions can be directly invoked by importing the file, which initiates the API requests.

      For more details, refer to BFF - Basic Usage.