Skip to content

Commit 27485a0

Browse files
committed
chore: update
1 parent dddda6e commit 27485a0

File tree

5 files changed

+9389
-41
lines changed

5 files changed

+9389
-41
lines changed

README.md

Lines changed: 14 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -14,56 +14,39 @@ This starter lets you get started with [NuxtHub](https://hub.nuxt.com) in second
1414

1515
## Setup
1616

17-
Make sure to install the dependencies:
17+
Make sure to install the dependencies with [pnpm](https://pnpm.io).
1818

1919
```bash
20-
# npm
21-
npm install
22-
23-
# pnpm
2420
pnpm install
25-
26-
# yarn
27-
yarn install
28-
29-
# bun
30-
bun install
3121
```
3222

3323
## Development Server
3424

3525
Start the development server on `http://localhost:3000`:
3626

3727
```bash
38-
# npm
39-
npm run dev
40-
41-
# pnpm
42-
pnpm run dev
43-
44-
# yarn
45-
yarn dev
46-
47-
# bun
48-
bun run dev
28+
pnpm dev
4929
```
5030

5131
## Production
5232

5333
Build the application for production:
5434

5535
```bash
56-
# npm
57-
npm run build
36+
pnpm build
37+
```
5838

59-
# pnpm
60-
pnpm run build
39+
Check out the [deployment documentation](https://hub.nuxt.com/docs/getting-started/deploy) for more information.
40+
41+
## Deploy
6142

62-
# yarn
63-
yarn build
43+
Deploy the application on the Edge with [NuxtHub](https://hub.nuxt.com) on your Cloudflare account:
6444

65-
# bun
66-
bun run build
45+
```bash
46+
npx nuxthub deploy
6747
```
6848

69-
Check out the [deployment documentation](https://hub.nuxt.com/docs/getting-started/deploy) for more information.
49+
Then checkout your server logs, analaytics and more in the [NuxtHub Admin](https://admin.hub.nuxt.com).
50+
51+
You can also deploy using [Cloudflare Pages CI](https://hub.nuxt.com/docs/getting-started/deploy#cloudflare-pages-ci).
52+

app/components/RedirectsPanel.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
const { data: redirects, refresh } = await useFetch('/api/redirects', {
33
transform: (data: { [key: string]: string }) => {
44
// Transform to text for the textarea
5-
return Object.entries(data).map(([from, to]) => `${from} ${to}`).join('\n')
5+
return { text: Object.entries(data).map(([from, to]) => `${from} ${to}`).join('\n') }
66
}
77
})
88
99
async function updateRedirects () {
1010
const body = Object.fromEntries(
11-
redirects.value!.split('\n').map(line => line.split(' '))
11+
redirects.value!.text.split('\n').map(line => line.split(' '))
1212
)
1313
await $fetch('/api/redirects', {
1414
method: 'PUT',
@@ -22,7 +22,7 @@ async function updateRedirects () {
2222
<div>
2323
<h3>Server redirects</h3>
2424
<form @submit.prevent="updateRedirects">
25-
<p><textarea v-model="redirects" rows="6" placeholder="/from /to (one redirect per line)" style="width: 300px;" /></p>
25+
<p><textarea v-model="redirects.text" rows="6" placeholder="/from /to (one redirect per line)" style="width: 300px;" /></p>
2626
<button type="submit">
2727
Save redirects
2828
</button>

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
},
1414
"dependencies": {
1515
"@nuxt/eslint": "^0.3.13",
16-
"@nuxthub/core": "^0.6.11",
17-
"nuxt": "^3.12.1"
16+
"@nuxthub/core": "^0.7.0",
17+
"nuxt": "^3.12.2"
1818
},
1919
"devDependencies": {
2020
"@nuxt/eslint-config": "^0.3.13",
21-
"eslint": "^9.4.0",
22-
"vue-tsc": "^2.0.21",
23-
"wrangler": "^3.60.1"
21+
"eslint": "^9.5.0",
22+
"vue-tsc": "^2.0.22",
23+
"wrangler": "^3.62.0"
2424
}
2525
}

0 commit comments

Comments
 (0)