diff --git a/.gitignore b/.gitignore index 37f6b9029ba..feae6b1f3e6 100644 --- a/.gitignore +++ b/.gitignore @@ -39,4 +39,8 @@ dev public/prompts.json .vscode -.idea \ No newline at end of file +.idea + +pnpm-lock.yaml +# Local Netlify folder +.netlify diff --git a/Dockerfile b/Dockerfile index 7ed7bc15514..0b1462c2bc2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ WORKDIR /app COPY package.json yarn.lock ./ -RUN yarn config set registry 'https://registry.npm.taobao.org' +RUN yarn config set registry 'https://registry.npmmirror.com' RUN yarn install FROM base AS builder diff --git a/app/components/home.tsx b/app/components/home.tsx index 828b7576a25..19feb005b08 100644 --- a/app/components/home.tsx +++ b/app/components/home.tsx @@ -1,6 +1,6 @@ "use client"; -require("../polyfill"); +// import '@babel/polyfill/dist/polyfill.min'; import { useState, useEffect, useRef } from "react"; diff --git a/app/layout.tsx b/app/layout.tsx index 38748ef378f..48db28aa627 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -41,6 +41,7 @@ export default function RootLayout({ href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;700;900&display=swap" rel="stylesheet" > + {children} diff --git a/next.config.js b/next.config.js index f7d5ff086ed..5f46ae940a7 100644 --- a/next.config.js +++ b/next.config.js @@ -1,6 +1,8 @@ /** @type {import('next').NextConfig} */ const nextConfig = { + reactStrictMode: true, + compress: true, experimental: { appDir: true, },