Skip to content

Commit

Permalink
docs: various improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Nov 19, 2024
1 parent f45a682 commit 77c4de4
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/components/PageSectionCTA.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defineProps({
}"
:links="[
{
label: 'Get started for free',
label: 'Deploy now',
to: 'https://admin.hub.nuxt.com',
trailingIcon: 'i-lucide-arrow-right'
},
Expand Down
2 changes: 1 addition & 1 deletion docs/content/0.index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ tool:
title: A tailored solution for faster Nuxt app management
description: NuxtHub offers a comprehensive suite of tools and features to let you build and deploy full-stack Nuxt applications worldwide.
links:
- label: Get started for free
- label: Open the dashboard
trailing-icon: i-lucide-arrow-right
to: https://admin.hub.nuxt.com
external: true
Expand Down
15 changes: 15 additions & 0 deletions docs/content/1.docs/2.features/blob.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,21 @@ export default eventHandler(async () => {

Returns [`BlobListResult`](#bloblistresult).

#### Return all blobs

To fetch all blobs, you can use a `while` loop to fetch the next page until the `cursor` is `null`.

```ts
let blobs = []
let cursor = null

do {
const res = await hubBlob().list({ cursor })
blobs.push(...res.blobs)
cursor = res.cursor
} while (cursor)
```

### `serve()`

Returns a blob's data and sets `Content-Type`, `Content-Length` and `ETag` headers.
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ onMounted(() => {
<template #links>
<div class="flex flex-col gap-y-6">
<div class="flex flex-wrap gap-x-6 gap-y-3">
<UButton to="https://admin.hub.nuxt.com" external size="md" trailing-icon="i-lucide-arrow-right">
Get started for free
<UButton to="/docs/getting-started/installation" size="md" trailing-icon="i-lucide-arrow-right">
Get started
</UButton>
<UInputCopy value="npx nuxthub deploy" size="md" />
</div>
Expand Down

0 comments on commit 77c4de4

Please sign in to comment.