跳过内容

使用本地开发的CLI与自托管的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 keylocalSupaAnon

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 使用@capgo/capacitor-updater API 简介 API 实现细节简介 __CAPGO_KEEP_0__ 简介 __CAPGO_KEEP_0__ 实现细节简介 API 密钥 API 实现细节简介, 和 __CAPGO_KEEP_0__ 设备 __CAPGO_KEEP_0__ 实现细节简介。