Skip to content

Commit

Permalink
fix: storyblok version type
Browse files Browse the repository at this point in the history
  • Loading branch information
BJvdA committed May 12, 2021
1 parent 5b0f5e0 commit 839abce
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/client/getClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ export const getClient = ({
headers: {
Token,
Version:
version || process.env.NODE_ENV === 'development'
? 'draft'
: 'published',
version ||
(process.env.NODE_ENV === 'development' ? 'draft' : 'published'),
...(additionalOptions?.headers || {}),
},
});

1 comment on commit 839abce

@vercel
Copy link

@vercel vercel bot commented on 839abce May 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.