- 使用 PAYLOAD=$(cat <<ENDPAYLOAD) 替代 cat > file <<EOF - 确保环境变量在 heredoc 中正确展开 - 添加测试脚本验证环境变量展开 - 修复构建详情链接和消息内容缺失问题
This commit is contained in:
@@ -33,7 +33,7 @@ export async function GET(request: NextRequest) {
|
||||
}
|
||||
|
||||
const conditions = [];
|
||||
|
||||
|
||||
if (category) {
|
||||
conditions.push(eq(siteConfig.category, category as 'feature' | 'style' | 'seo' | 'general'));
|
||||
}
|
||||
@@ -46,8 +46,10 @@ export async function GET(request: NextRequest) {
|
||||
.where(whereClause)
|
||||
.orderBy(siteConfig.key);
|
||||
|
||||
const filteredConfigs = configs.filter(config => !config.key.startsWith('test_'));
|
||||
|
||||
return success({
|
||||
configs: configs,
|
||||
configs: filteredConfigs,
|
||||
});
|
||||
} catch (error) {
|
||||
return handleApiError(error);
|
||||
|
||||
Reference in New Issue
Block a user