mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 08:45:58 +03:00
[PR #5610] [MERGED] fix: filter undefined values in config and update build files #5281
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#5281
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/5610
Author: @mirarifhasan
Created: 11/24/2025
Status: ✅ Merged
Merged: 11/24/2025
Merged by: @mirarifhasan
Base:
next← Head:fix/be-dep-bump📝 Commits (5)
2c30d0efix: filter undefined values in config and update build filesa39bb7dfix: add fallback for DATABASE_URL in Prisma configcfbe6acbuild: set default DATABASE_URL in Dockerfile and config46a15f2build: et default DATABASE_URL in Dockerfile and configce3f950Update packages/hoppscotch-backend/package.json📊 Changes
3 files changed (+10 additions, -5 deletions)
View changed files
📝
packages/hoppscotch-backend/package.json(+2 -1)📝
packages/hoppscotch-backend/src/infra-config/infra-config.service.ts(+6 -4)📝
prod.Dockerfile(+2 -0)📄 Description
What's changed
This pull request introduces several improvements to the backend configuration and deployment process, focusing on filtering undefined configuration values, enhancing Docker build reliability, and ensuring proper packaging of configuration files. The changes collectively improve robustness and maintainability in both development and production environments.
Configuration and code quality improvements:
InfraConfigServiceto filter out undefined values when processing configuration entries, preventing unnecessary or invalid entries from being stored.Build and deployment enhancements:
prisma.config.tsfile to thefilesarray inpackage.jsonto ensure it is included in package distributions, which is important for deployments and builds that rely on this configuration.DATABASE_URLenvironment variable in the Dockerfile before runningprisma generate, ensuring that Prisma CLI commands do not fail due to missing environment variables during the build process.Notes to reviewers
Summary by cubic
Prevents invalid config entries by filtering undefined values and stabilizes backend builds by bundling Prisma config and setting a safe default DATABASE_URL for Prisma generation.
Bug Fixes
Build
Written for commit
ce3f95053e. Summary will update automatically on new commits.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.