跳过内容

Using the CLI with self-hosted capgo

GitHub

This tutorial will show how to use CLI in a dev environment with self hosted capgo

To use the CLI with self-hosted capgo edit the capacitor.config.ts from your app directory and set it like this:

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

继续使用自托管的CLI和capgo

标题为“继续使用自托管的CLI和capgo”

如果您正在使用 使用自托管的CLI和capgo 来规划仪表板和API操作,连接它到 使用@capgo/capacitor-updater 为native能力在使用@capgo/capacitor-updater, API 介绍 为了了解 API 介绍的实现细节, 入门指南 为了了解入门指南的实现细节, API 密钥 为了了解 API 密钥的实现细节,和 设备 为了了解设备的实现细节。