Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b734661e47 | ||
|
|
9dbe231c79 |
No files matched your search
+4
-2
@@ -35,7 +35,8 @@ RUN find ./src -type f -name "route.ts" -print0 \
|
|||||||
ENV DOCKER_ENV=true
|
ENV DOCKER_ENV=true
|
||||||
# 海报走站内 /api/image-proxy(浏览器直连豆瓣图被拦导致全裂)
|
# 海报走站内 /api/image-proxy(浏览器直连豆瓣图被拦导致全裂)
|
||||||
ENV NEXT_PUBLIC_IMAGE_PROXY=/api/image-proxy
|
ENV NEXT_PUBLIC_IMAGE_PROXY=/api/image-proxy
|
||||||
ENV NEXT_PUBLIC_SITE_VERSION=fixed107
|
ENV NEXT_PUBLIC_SITE_VERSION=fixed109
|
||||||
|
ENV NEXT_PUBLIC_ENABLE_REGISTER=true
|
||||||
|
|
||||||
# For Docker builds, force dynamic rendering to read runtime environment variables.
|
# For Docker builds, force dynamic rendering to read runtime environment variables.
|
||||||
RUN sed -i "/const inter = Inter({ subsets: \['latin'] });/a export const dynamic = 'force-dynamic';" src/app/layout.tsx
|
RUN sed -i "/const inter = Inter({ subsets: \['latin'] });/a export const dynamic = 'force-dynamic';" src/app/layout.tsx
|
||||||
@@ -55,7 +56,8 @@ ENV HOSTNAME=0.0.0.0
|
|||||||
ENV PORT=3000
|
ENV PORT=3000
|
||||||
ENV DOCKER_ENV=true
|
ENV DOCKER_ENV=true
|
||||||
ENV NEXT_PUBLIC_IMAGE_PROXY=/api/image-proxy
|
ENV NEXT_PUBLIC_IMAGE_PROXY=/api/image-proxy
|
||||||
ENV NEXT_PUBLIC_SITE_VERSION=fixed107
|
ENV NEXT_PUBLIC_SITE_VERSION=fixed109
|
||||||
|
ENV NEXT_PUBLIC_ENABLE_REGISTER=true
|
||||||
|
|
||||||
# 从构建器中复制 standalone 输出
|
# 从构建器中复制 standalone 输出
|
||||||
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
|
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
|
||||||
|
|||||||
@@ -349,6 +349,10 @@ export class RedisStorage implements IStorage {
|
|||||||
return match ? ensureString(match[1]) : undefined;
|
return match ? ensureString(match[1]) : undefined;
|
||||||
})
|
})
|
||||||
.filter((u): u is string => typeof u === 'string');
|
.filter((u): u is string => typeof u === 'string');
|
||||||
|
// 站长(owner)不一定有密码记录,但需显示其最后登录时间
|
||||||
|
if (!usernames.includes(ownerUsername)) {
|
||||||
|
usernames.push(ownerUsername);
|
||||||
|
}
|
||||||
|
|
||||||
// 获取用户创建时间、最后登录时间并构造 User 对象
|
// 获取用户创建时间、最后登录时间并构造 User 对象
|
||||||
const users = await Promise.all(
|
const users = await Promise.all(
|
||||||
|
|||||||
Reference in new issue
Block a user