Skip to content

Commit

Permalink
chore: добавлен скрипт npm run deploy для развёртывания в NuxtHub
Browse files Browse the repository at this point in the history
  • Loading branch information
LorexIQ committed Nov 18, 2024
1 parent 4a32fa2 commit 1444a4e
Show file tree
Hide file tree
Showing 6 changed files with 8,850 additions and 3 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,19 @@ Just add `AUTO_IMPORT_DEBUG=1` to your `.env`.
- Run `npm run dev:prepare` to generate type stubs.
- Use `npm run dev` to start playground in development mode.

## Deploy


Deploy the application on the Edge with [NuxtHub](https://hub.nuxt.com) on your Cloudflare account:

```bash
npm run deploy
```

Then checkout your server logs, analaytics and more in the [NuxtHub Admin](https://admin.hub.nuxt.com).

You can also deploy using [Cloudflare Pages CI](https://hub.nuxt.com/docs/getting-started/deploy#cloudflare-pages-ci).

## License

[MIT License](./LICENSE)
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"dev": "nuxi dev playground",
"dev:build": "nuxi build playground",
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
"deploy": "cd ./playground && npx nuxthub deploy",
"release": "npm run lint && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
"lint": "eslint . --config eslint.config.mjs",
"lint:fix": "eslint . --config eslint.config.mjs --fix"
Expand Down
3 changes: 2 additions & 1 deletion playground/assets/icons.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export default defineIcons({
Cluster: 'cluster-icon',
Cluster2: 'cluster-2-icon'
Cluster2: 'cluster-2-icon',
Cluster3: 'cluster-3-icon'
});
8 changes: 6 additions & 2 deletions playground/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ export default defineNuxtConfig({
'./base'
],

modules: ['../src/module'],
// modules: ['../dist'],
modules: [
'../src/module',
'@nuxthub/core'
],

ssr: false,

devtools: { enabled: true },

compatibilityDate: '2024-11-11',
Expand Down
Loading

0 comments on commit 1444a4e

Please sign in to comment.