Skip to content

Commit

Permalink
attempt to fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
CarelessCourage committed Mar 2, 2025
1 parent 20e7e23 commit 12e0465
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 6 deletions.
11 changes: 11 additions & 0 deletions apps/hub/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,15 @@ export default defineNuxtConfig({
},
},
},

vite: {
resolve: {
alias: {
path: 'path-browserify',
stream: 'stream-browserify',
readline: 'readline-browserify',
fs: 'fs-mock', // Add this alias for 'fs'
},
},
},
})
4 changes: 4 additions & 0 deletions apps/hub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@
"@unocss/preset-mini": "66.0.0",
"drizzle-kit": "^0.30.4",
"eslint": "^9.21.0",
"fs-mock": "^1.2.1",
"path-browserify": "^1.0.1",
"readline-browserify": "^0.0.4",
"stream-browserify": "^3.0.0",
"typescript": "^5.7.3",
"unocss": "^66.0.0",
"vue-tsc": "^2.2.2",
Expand Down
46 changes: 40 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 12e0465

Please sign in to comment.