fixing cors for prod

This commit is contained in:
2026-01-20 22:41:51 -05:00
parent 8001ea2b4c
commit 9c8bb13fb0
5 changed files with 11 additions and 5 deletions

View File

@@ -33,7 +33,8 @@ public class CorsConfig {
"https://localhost:3000/gunbuilder",
"http://localhost:3000/gunbuilder",
"https://localhost:3000/builder",
"http://localhost:3000/builder"
"http://localhost:3000/builder",
"https://battl.builders"
));
// Allow all headers

View File

@@ -10,6 +10,7 @@ import group.goforward.battlbuilder.enrichment.repo.ProductEnrichmentRepository;
import group.goforward.battlbuilder.model.Product;
import group.goforward.battlbuilder.repos.ProductRepository;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Service;
import java.math.BigDecimal;
@@ -17,6 +18,11 @@ import java.util.List;
import java.util.Map;
@Service
@ConditionalOnProperty(
name = "ai.enrichment.provider",
havingValue = "openai",
matchIfMissing = false
)
public class AiEnrichmentOrchestrator {
private final EnrichmentModelClient modelClient;

View File

@@ -79,6 +79,6 @@ app.beta.invite.tokenMinutes=30
ai.minConfidence=0.75
ai.openai.apiKey=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
ai.openai.model=gpt-4.1-mini
ai.enrichment.provider=off
ai.enrichment.provider=openai
spring.jackson.serialization.fail-on-empty-beans=false