API

Stop exposing the PocketBase REST API, added by vela enable api.

Syntax

$ vela disable api

Options

  • -y, --yes - Skip the confirmation prompt

What it removes

The API handler in hooks.server.ts, so /api stops serving the PocketBase API:

export const handle = handlePocketbase({
    api: {
        enabled: false
    }
});

Any SvelteKit routes of your own in src/routes/api keep working — only the PocketBase routes that took precedence over them are withdrawn. Disable API keys first if they are enabled.