跳过内容

Using the CLI with self-hosted capgo

GitHub

本教程将展示如何在开发环境中使用 CLI 与自托管的 capgo

要使用 CLI 与自托管的 capgo,编辑 capacitor.config.ts 从您的应用程序目录中复制并设置它,如下所示:

const config: CapacitorConfig = {
appId: 'com.demo.app',
appName: 'demoApp',
webDir: 'dist',
bundledWebRuntime: false,
plugins: {
CapacitorUpdater : {
localHost: "http://localhost:5173",
localWebHost: "http://localhost:5173",
localSupa: "http://localhost:54321",
localSupaAnon: "see_notes",
},
},
};

注意:要获取 localSupaAnon 请遵循 并复制anon key 继续 localSupaAnon

Keep going from Using the CLI with self-hosted capgo

Section titled “Keep going from Using the CLI with self-hosted capgo”

如果您正在使用 Using the CLI with self-hosted capgo to plan dashboard and API operations, connect it with Using @capgo/capacitor-updater for the native capability in Using @capgo/capacitor-updater, API 简介 了解 API 简介的实现细节 介绍 了解介绍的实现细节 API 密钥 了解 API 密钥的实现细节,以及 设备 了解设备的实现细节。