chore: cleanup old codes (#1071)

This commit is contained in:
Chi Zhang
2023-02-17 00:51:32 +08:00
committed by GitHub
parent 9db80fde37
commit 50352e0f82
2 changed files with 8 additions and 90 deletions

View File

@@ -106,5 +106,13 @@ const withPWA = require('next-pwa')({
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');
} else {
printer.info('NEXT_PUBLIC_FIREBASE_API_KEY found');
}
};
detectFirebaseConfig();
module.exports = withDebugLocal(withPWA(nextConfig));