Some checks failed
Build BAB Application Deployment Artifact / build (push) Failing after 2m35s
4.4 KiB
4.4 KiB
Session Handoff: Nuxt Repo Replacement & CI Fixes
Date: 2026-03-20 Session Focus: Replace Quasar source with Nuxt in bab-app repo; fix CI pipeline Context at Handoff: Medium — migration complete, CI pipeline passing, app deploying
What Was Accomplished
1. Quasar → Nuxt repo replacement (nuxt_test branch)
Lifted bab-app-nuxt/ (sibling dir) into bab-app/ root, replacing all Quasar artifacts.
Deleted from root:
src/,src-pwa/,.quasar/,dist/,node_modules/quasar.config.ts,quasar.extensions.json,index.html,postcss.config.cjs,eslint.config.js,tsconfig.vue-tsc.json,.npmrc,nohup.out
Added to root:
app/,tests/,public/(nuxt versions)nuxt.config.ts,vitest.config.ts,tsconfig.json(nuxt versions)package.json,yarn.lock(nuxt versions)
Updated:
generate-version.cjs— removedsrc/version.tswrite; path changed frombab-app-nuxt/app/utils/version.ts→app/utils/version.ts.releaserc.json— removedcd bab-app-nuxt &&; fixed.output/publicpath; changednpm run generate-version→node generate-version.cjs; fixed::set-output::→$GITHUB_OUTPUT.gitea/workflows/build.yaml—bab-app-nuxt/.env→.env.gitignore— replaced with Nuxt version (keptVERSION,release-*.gz,CHANGELOG.md)
2. Pre-commit hook (husky)
- Added
husky,vue-tscto devDependencies - Added
prepare: huskyandtypecheck: nuxt typecheckscripts .husky/pre-commitrunsyarn typecheck- Note:
yarn testexcluded — only test file is live Appwrite integration test, not suitable for pre-commit
3. Semantic-release plugins
- Added all plugins to devDependencies (were missing from nuxt package.json):
semantic-release,@semantic-release/changelog,@semantic-release/commit-analyzer,@semantic-release/release-notes-generator,@semantic-release/exec,@saithodev/semantic-release-gitea - Changed
npx semantic-release→yarn semantic-releasein build.yaml
4. CI pipeline fixes (iterative)
- Removed
cache: 'yarn'from setup-node (yarn not available yet at that step) - Added
node_modulescache viaactions/cache@v4, keyed onyarn.lockhash; install skips on cache hit - Replaced
workflow-webhookaction with directcurl— action was sendingX-Hub-Signature/X-GitHub-Eventheaders that caused AAP EDA 403 - Fixed
Authorization: Bearer Token:***→Authorization: Bearer ***(removed redundantToken:prefix) - Added
if: steps.build.outputs.VERSION != ''to webhook step - Replaced
--fail-with-body(curl too old on runner) with-w "\n%{http_code}"pattern that prints body + status and fails on non-2xx - Added
$GITHUB_OUTPUTfor VERSION output (replaced deprecated::set-output::)
5. nuxt.config.ts
- Added
vite.optimizeDeps.includefor@vue/devtools-core,@vue/devtools-kit,appwrite,@quasar/quasar-ui-qcalendarto prevent dev server page reloads
Current State
nuxt_testbranch: Nuxt app is the only source in the repo root- CI pipeline: passes on push to
alpha/devel/main node_modulescache: working (Gitea cache confirmed operational)- Webhook: working — direct curl to AAP EDA event stream
- App deploying but showing runtime error (see open questions)
Open Questions
- OPEN:
ENV_FILEGitea variable likely has old Quasar env var names. Nuxt expectsNUXT_PUBLIC_APPWRITE_ENDPOINTandNUXT_PUBLIC_APPWRITE_PROJECT_ID. Update in Gitea → Repo Settings → Actions → Variables. - OPEN:
.env.localat repo root should be renamed to.envfor local Nuxt 4 dev (Nuxt 4 loads.env, not.env.local). - OPEN:
nuxt_testbranch ready to merge tomainonce ENV_FILE is fixed and smoke test passes. - OPEN: Appwrite SDK deprecated API calls (TS6387) — migrate to v14+ signatures.
- OPEN:
task/taskTags/skillTagscollections — not yet created inbab_prod.
Key File Paths
.gitea/workflows/build.yaml— CI pipeline.releaserc.json— semantic-release configgenerate-version.cjs— writes VERSION toVERSIONandapp/utils/version.ts.husky/pre-commit— runsyarn typechecknuxt.config.ts— Nuxt config with optimizeDepsapp/plugins/appwrite.client.ts— throws console.error (not exception) when env vars missing
Next Session
- Update
ENV_FILEin Gitea to use Nuxt var names - Trigger a build and smoke test the deployed app
- Merge
nuxt_test→main