Skip to content

Commit

Permalink
fix: withPWA is not a function error
Browse files Browse the repository at this point in the history
  • Loading branch information
subhamX committed Sep 7, 2022
1 parent 4c8d3ad commit a026978
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions frontend/next.config.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,15 @@
/** @type {import('next').NextConfig} */

const removeImports = require("next-remove-imports")();
const withPWA = require('next-pwa')({

const withPWA = require('next-pwa');({
dest: 'public'
})
});


const nextConfig = {
reactStrictMode: true,
swcMinify: true,
// async rewrites() {
// return [
// {
// source: "/ms/chat/:slug*",
// destination: `http://localhost:5000/ms/chat/:slug*`, // Wrong: We want to connect to ws too
// },
// {
// source: "/ms/impact/:slug*",
// destination: `${process.env.SERVER_URL}/ms/impact/:slug*`, // Proxy to Backend
// },
// ];
// },
};

module.exports = removeImports(withPWA(
(nextConfig)
));
module.exports = removeImports(withPWA(nextConfig));

0 comments on commit a026978

Please sign in to comment.