diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..1550b88 --- /dev/null +++ b/.env.example @@ -0,0 +1,4 @@ +# 开发环境配置 +NEXT_PUBLIC_API_BASE_URL=http://192.168.3.42:8080 +CLIENT_ID=web +CLIENT_SECRET=web diff --git a/.gitignore b/.gitignore index f8285f9..1913615 100644 --- a/.gitignore +++ b/.gitignore @@ -31,7 +31,7 @@ yarn-error.log* .pnpm-debug.log* # env files (can opt-in for committing if needed) -.env* +.env # vercel .vercel diff --git a/Dockerfile b/Dockerfile index df2df4e..9527b43 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,7 @@ COPY . . ENV NEXT_TELEMETRY_DISABLED=1 +RUN mv .env.example .env RUN bun run build # 生产阶段