Skip to content

Commit

Permalink
nix: replace domain
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelCoding committed Aug 7, 2024
1 parent 4bab74f commit 24cba01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions derivation.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ domain, mkPnpmPackage, static ? false }:
{ contentApi, mkPnpmPackage, static ? false }:

mkPnpmPackage {
src = ./.;
Expand All @@ -7,7 +7,7 @@ mkPnpmPackage {

postPatch = ''
substituteInPlace src/app/api/api.domain.ts \
--replace 'http://127.0.0.1:8080' 'https://content.${domain}'
--replace 'http://127.0.0.1:8080' '${contentApi}'
'';

script = if static then "build:static" else "build:ci";
Expand Down

0 comments on commit 24cba01

Please sign in to comment.