const withOffline = require('next-offline') const nextConfig = { // your nextjs config } module.exports = withOffline(nextConfig)