Skip to content

Commit a1892f9

Browse files
committed
feat(auth): 添加 ParticleAuthWrapper 组件包裹子组件
ci: 更新 Particle API 环境变量命名以支持客户端访问
1 parent 361d1fc commit a1892f9

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
env:
4141
# Database URL for build (can be a dummy for type checking)
4242
DATABASE_URL: ${{ secrets.DATABASE_URL }}
43-
# Particle API
44-
PARTICLE_CLIENT: ${{ secrets.CLIENT }}
45-
PARTICLE_PROJECT_ID: ${{ secrets.PROJECT_ID }}
46-
PARTICLE_SERVER: ${{ secrets.SERVER }}
43+
# Particle API (Using NEXT_PUBLIC_ prefix for client-side access)
44+
NEXT_PUBLIC_PARTICLE_PROJECT_ID: ${{ secrets.PROJECT_ID }}
45+
NEXT_PUBLIC_PARTICLE_CLIENT_KEY: ${{ secrets.CLIENT }}
46+
NEXT_PUBLIC_PARTICLE_APP_ID: ${{ secrets.APP_ID || secrets.SERVER }}

src/app/layout.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ export default function RootLayout({
2828
return (
2929
<html lang="en">
3030
<body className={`${geistSans.variable} ${geistMono.variable} antialiased`}>
31-
<TRPCProvider>{children}</TRPCProvider>
31+
<TRPCProvider>
32+
<ParticleAuthWrapper>{children}</ParticleAuthWrapper>
33+
</TRPCProvider>
3234
</body>
3335
</html>
3436
);

0 commit comments

Comments
 (0)