Skip to content

Commit

Permalink
Fix: prevent middleware log errors (#78)
Browse files Browse the repository at this point in the history
* add vercel to gitignore

* chore: update unleash dependencies

* fix: prevent flags client errors
  • Loading branch information
Tymek authored Jun 13, 2024
1 parent 12d0b06 commit f35a283
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 27 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ yarn-error.log*
# turbo
.turbo

.idea
.idea

# vercel
.vercel
8 changes: 4 additions & 4 deletions lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@types/react": "18.2.63",
"@types/react-dom": "18.2.19",
"@types/semver": "7.5.8",
"@unleash/client-specification": "5.1.4",
"@unleash/client-specification": "5.1.6",
"@vitest/coverage-v8": "^1.3.1",
"eslint-config-custom": "workspace:*",
"next": "14.1.2",
Expand All @@ -50,12 +50,12 @@
"dependencies": {
"@commander-js/extra-typings": "12.0.1",
"@next/env": "14.1.2",
"@unleash/proxy-client-react": "4.2.3",
"@unleash/proxy-client-react": "4.2.4",
"commander": "12.0.0",
"murmurhash3js": "3.0.1",
"semver": "7.6.0",
"unleash-client": "5.5.1",
"unleash-proxy-client": "3.4.0"
"unleash-client": "5.5.3",
"unleash-proxy-client": "3.4.1"
},
"peerDependencies": {
"next": ">=12",
Expand Down
2 changes: 2 additions & 0 deletions lib/src/flagsClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ export const flagsClient = (toggles = [] as IToggle[]) => {
const client = new UnleashClient({
bootstrap: toggles,
...getDefaultClientConfig(),
fetch: () => null,
createAbortController: () => null,
refreshInterval: 0,
disableRefresh: true,
bootstrapOverride: true,
Expand Down
44 changes: 22 additions & 22 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 f35a283

Please sign in to comment.