mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(web): remove pwa support (#1078)
This commit is contained in:
@@ -106,11 +106,6 @@ const withDebugLocal = require('next-debug-local')(
|
||||
}
|
||||
);
|
||||
|
||||
const withPWA = require('next-pwa')({
|
||||
dest: 'public',
|
||||
scope: '/_next',
|
||||
disable: process.env.NODE_ENV !== 'production',
|
||||
});
|
||||
const detectFirebaseConfig = () => {
|
||||
if (!process.env.NEXT_PUBLIC_FIREBASE_API_KEY) {
|
||||
printer.warn('NEXT_PUBLIC_FIREBASE_API_KEY not found, please check it');
|
||||
@@ -120,4 +115,4 @@ const detectFirebaseConfig = () => {
|
||||
};
|
||||
detectFirebaseConfig();
|
||||
|
||||
module.exports = withDebugLocal(withPWA(nextConfig));
|
||||
module.exports = withDebugLocal(nextConfig);
|
||||
|
||||
@@ -51,7 +51,6 @@
|
||||
"eslint-config-next": "12.3.1",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-plugin-prettier": "^4.2.1",
|
||||
"next-pwa": "^5.6.0",
|
||||
"raw-loader": "^4.0.2",
|
||||
"typescript": "^4.9.5"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user