Compare commits

...

2 Commits

Author SHA1 Message Date
nuxthub-admin[bot]
f586394f80 ci: add nuxthub workflow 2025-09-30 10:21:07 +00:00
506152a986 feat: add config.json for deployment and update dependencies in bun.lock and nuxt.config.ts 2025-09-30 11:37:24 +02:00
4 changed files with 51 additions and 6 deletions

34
.github/workflows/nuxthub.yml vendored Normal file
View File

@@ -0,0 +1,34 @@
name: Deploy to NuxtHub
on: push
jobs:
deploy:
name: "Deploy to NuxtHub"
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- name: Install Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install dependencies
run: bun install
- name: Ensure NuxtHub module is installed
run: bunx nuxthub@latest ensure
- name: Build & Deploy to NuxtHub
uses: nuxt-hub/action@v2
with:
project-key: artchat-vuju

View File

@@ -0,0 +1 @@
{"configPath":"../../.output/server/wrangler.json"}

View File

@@ -5,7 +5,7 @@
"name": "nuxt-app",
"dependencies": {
"@antfu/eslint-config": "^5.4.1",
"@iconify-json/devicon": "^1.2.44",
"@iconify-json/devicon": "^1.2.45",
"@iconify-json/logos": "^1.2.9",
"@iconify-json/ph": "^1.2.2",
"@iconify-json/simple-icons": "^1.2.53",
@@ -18,7 +18,7 @@
"@nuxtjs/google-fonts": "^3.2.0",
"@nuxtjs/i18n": "10.1.0",
"@pinia/nuxt": "^0.11.2",
"@tailwindcss/typography": "^0.5.18",
"@tailwindcss/typography": "^0.5.19",
"@vueuse/math": "13.9.0",
"@vueuse/motion": "^3.0.3",
"better-sqlite3": "^12.4.1",
@@ -29,13 +29,13 @@
"remark-parse": "^11.0.0",
"remark-rehype": "^11.1.2",
"typescript": "^5.9.2",
"vue": "^3.5.21",
"vue": "^3.5.22",
"vue-router": "^4.5.1",
},
"devDependencies": {
"@types/node": "^24.5.2",
"@types/node": "^24.6.0",
"@vueuse/nuxt": "^13.9.0",
"vue-tsc": "^3.0.8",
"vue-tsc": "^3.1.0",
},
},
},

View File

@@ -51,6 +51,12 @@ export default defineNuxtConfig({
},
},
vite: {
build: {
sourcemap: false,
},
},
// Nuxt Color Mode
colorMode: {
preference: 'system',
@@ -108,9 +114,13 @@ export default defineNuxtConfig({
// Nitro
nitro: {
experimental: {
websocket: true,
openAPI: true,
},
preset: 'cloudflare-module',
cloudflare: {
deployConfig: true,
nodeCompat: true,
},
},
// Nuxt Env