Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions INTEGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import {
} from "@convex-dev/static-hosting";

// Internal functions for secure uploads (CLI only)
export const { generateUploadUrl, recordAsset, gcOldAssets, listAssets } =
export const { generateUploadUrl, generateUploadUrls, recordAsset, recordAssets, gcOldAssets, listAssets } =
exposeUploadApi(components.selfHosting);

// Public query for live reload notifications
Expand Down Expand Up @@ -192,7 +192,7 @@ import { internalAction } from "./_generated/server";
import { v } from "convex/values";
import { del } from "convex-fs";

export const { generateUploadUrl, recordAsset, gcOldAssets, listAssets } =
export const { generateUploadUrl, generateUploadUrls, recordAsset, recordAssets, gcOldAssets, listAssets } =
exposeUploadApi(components.selfHosting);

export const { getCurrentDeployment } =
Expand Down Expand Up @@ -314,7 +314,7 @@ Registers HTTP routes for serving static files.
### exposeUploadApi(component)
Exposes internal functions for CLI-based uploads.

**Returns**: `{ generateUploadUrl, recordAsset, gcOldAssets, listAssets }`
**Returns**: `{ generateUploadUrl, generateUploadUrls, recordAsset, recordAssets, gcOldAssets, listAssets }`

### exposeDeploymentQuery(component)
Exposes a query for live reload notifications.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ import { components } from "./_generated/api";

// These are INTERNAL functions - only callable via `npx convex run`
// NOT accessible from the public internet
export const { generateUploadUrl, recordAsset, gcOldAssets, listAssets } =
export const { generateUploadUrl, generateUploadUrls, recordAsset, recordAssets, gcOldAssets, listAssets } =
exposeUploadApi(components.selfHosting);
```

Expand Down
2 changes: 1 addition & 1 deletion src/cli/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import {
} from "@convex-dev/static-hosting";

// Internal functions for secure uploads (only callable via CLI)
export const { generateUploadUrl, recordAsset, gcOldAssets, listAssets } =
export const { generateUploadUrl, generateUploadUrls, recordAsset, recordAssets, gcOldAssets, listAssets } =
exposeUploadApi(components.selfHosting);

// Public query for live reload notifications
Expand Down
2 changes: 1 addition & 1 deletion src/cli/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
output: process.stdout,
});

function prompt(question: string): Promise<string> {

Check warning on line 18 in src/cli/setup.ts

View workflow job for this annotation

GitHub Actions / Test and lint

'prompt' is defined but never used. Allowed unused vars must match /^_/u
return new Promise((resolve) => {
rl.question(question, (answer) => resolve(answer.trim()));
});
Expand Down Expand Up @@ -83,7 +83,7 @@
} from "@convex-dev/static-hosting";

// Internal functions for secure uploads (CLI only)
export const { generateUploadUrl, recordAsset, gcOldAssets, listAssets } =
export const { generateUploadUrl, generateUploadUrls, recordAsset, recordAssets, gcOldAssets, listAssets } =
exposeUploadApi(components.selfHosting);

// Public query for live reload notifications
Expand Down
4 changes: 2 additions & 2 deletions src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ export function registerStaticRoutes(
* import { exposeUploadApi } from "@convex-dev/static-hosting";
* import { components } from "./_generated/api";
*
* export const { generateUploadUrl, recordAsset, gcOldAssets, listAssets } =
* export const { generateUploadUrl, generateUploadUrls, recordAsset, recordAssets, gcOldAssets, listAssets } =
* exposeUploadApi(components.selfHosting);
* ```
*
Expand Down Expand Up @@ -501,7 +501,7 @@ export function exposeUploadApi(component: ComponentApi) {
* import { exposeUploadApi, exposeDeploymentQuery } from "@convex-dev/static-hosting";
* import { components } from "./_generated/api";
*
* export const { generateUploadUrl, recordAsset, gcOldAssets, listAssets } =
* export const { generateUploadUrl, generateUploadUrls, recordAsset, recordAssets, gcOldAssets, listAssets } =
* exposeUploadApi(components.selfHosting);
*
* export const { getCurrentDeployment } = exposeDeploymentQuery(components.selfHosting);
Expand Down
Loading