diff --git a/apps/web/next.config.js b/apps/web/next.config.js index 4ec0b5e41..9f8dee9d1 100644 --- a/apps/web/next.config.js +++ b/apps/web/next.config.js @@ -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)); diff --git a/apps/web/src/pages/workspace/[workspaceId]/playground.tsx b/apps/web/src/pages/workspace/[workspaceId]/playground.tsx deleted file mode 100644 index 28302d6db..000000000 --- a/apps/web/src/pages/workspace/[workspaceId]/playground.tsx +++ /dev/null @@ -1,90 +0,0 @@ -import { styled } from '@affine/component'; - -import { ReactElement, ReactNode } from 'react'; -import WorkspaceLayout from '@/components/workspace-layout'; -import { Button } from '@affine/component'; - -export const FeatureCardDiv = styled('section')({ - width: '800px', - border: '1px #eee solid', - margin: '20px auto', - minHeight: '100px', - padding: '15px', -}); -const FeatureCard = (props: { - name: string; - children: ReactNode | ReactNode[]; -}) => { - return ( - - Feature - {props.name} - {props.children} - - ); -}; - -export const Playground = () => { - return ( - <> - - Sign In - Sign Out - - - - - AFFiNE Demo - AFFiNE XXX - - New Workspace - - - - Workspace Name /[Workspace Members Count]/[Workspace Avatar] - Cloud Sync [Yes/No] - Auth [Public/Private] - - Update Workspace Name - Upload Workspace Avatar - Update Workspace Avatar - - - - Leave Workspace - Delete Workspace - - - Cloud Sync Enalbe - Disable - - - - - Add Member - - - terrychinaz@gmail Delete Members - - - - - - - Search - - - - - Workspace Name - Export Workspace - Import Workspace - - > - ); -}; - -Playground.getLayout = function getLayout(page: ReactElement) { - return {page}; -}; - -export default Playground;