Replaces hardcoded \"https://yourapp.com\" with a Spring property. - application.yml: app.base-url defaults to http://localhost:5173 - application-docker.yml: reads APP_BASE_URL env var, same default - HouseholdService: injects @Value("${app.base-url}") and uses it in toInviteResponse() to build shareUrl - HouseholdServiceTest: sets field via ReflectionTestUtils in @BeforeEach; adds test asserting shareUrl starts with configured base URL Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
36 lines
824 B
YAML
36 lines
824 B
YAML
spring:
|
|
application:
|
|
name: mealprep
|
|
|
|
datasource:
|
|
url: jdbc:postgresql://localhost:5432/mealprep
|
|
username: mealprep
|
|
password: mealprep
|
|
|
|
jpa:
|
|
open-in-view: false
|
|
hibernate:
|
|
ddl-auto: none
|
|
properties:
|
|
hibernate:
|
|
dialect: org.hibernate.dialect.PostgreSQLDialect
|
|
|
|
flyway:
|
|
enabled: true
|
|
locations: classpath:db/migration
|
|
|
|
servlet:
|
|
multipart:
|
|
# NOTE: these limits only apply to multipart/form-data uploads.
|
|
# Images sent as base64 inside a JSON body (Content-Type: application/json)
|
|
# are NOT constrained here — the @Size(max=7_000_000) annotation on
|
|
# RecipeCreateRequest.heroImageUrl enforces the limit for that path.
|
|
max-file-size: 5MB
|
|
max-request-size: 6MB
|
|
|
|
server:
|
|
port: 8080
|
|
|
|
app:
|
|
base-url: http://localhost:5173
|