Content is not updating in production Mode using Next JS

Problem Statement: Hi, we have just started using storybook and we are facing one minor challenge in the content updation on the website post-deployment. Whenever we deploy the production build and try to change any content on the storyblok then in that case updated content is not getting updated on the website. Not even after hard refresh.

Expected Behaviour: Published content should get updated automatically in the prod mode.

Below is my story-block service code snippet:

Technology: Next JS
Hosting: Vercel

import StoryblokClient from ‘storyblok-js-client’

class StoryblokService {
constructor() {
this.devMode = false // Always loads draft
this.token = ‘############’
this.client = new StoryblokClient({
accessToken: this.token,
cache: {
clear: ‘auto’,
type: ‘memory’
}
})

this.query = {}
}

getCacheVersion() {
return this.client.cacheVersion
}

get(slug, params) {
params = params || {}

if (this.getQuery(’_storyblok’) || this.devMode || (typeof window !== ‘undefined’ && window.storyblok)) {
params.version = ‘draft’
}

if (typeof window !== ‘undefined’ && typeof window.StoryblokCacheVersion !== ‘undefined’) {
params.cv = window.StoryblokCacheVersion
}

return this.client.get(slug, params)
}

initEditor(reactComponent) {
if (window.storyblok) {
window.storyblok.init()
window.storyblok.on([‘change’, ‘published’], () => location.reload(true))

// this will alter the state and replaces the current story with a current raw story object (no resolved relations or links)
window.storyblok.on(‘input’, (event) => {
if (event.story.content._uid === reactComponent.state.story.content._uid) {
reactComponent.setState({
story: {
…event.story,
content: window.storyblok.addComments(event.story.content, event.story.id)
}
})
}
})
}
}

setQuery(query) {
this.query = query
}

getQuery(param) {
return this.query[param]
}

bridge() {
if (!this.getQuery(’_storyblok’) && !this.devMode) {
return ‘’
}
return (<script src={’//app.storyblok.com/f/storyblok-latest.js?t=’ + this.token}>)
}
}

const storyblokInstance = new StoryblokService()

export default storyblokInstance