fix(ente-auth): remove build flag from ente-web-auth package
Move the build flag from the package to the module, that way everyone can just define their own URL in the module.
This commit is contained in:
parent
3ed788ba26
commit
a044d5707a
2 changed files with 9 additions and 2 deletions
|
@ -9,6 +9,14 @@ with lib;
|
||||||
with lib.${namespace};
|
with lib.${namespace};
|
||||||
let
|
let
|
||||||
cfg = config.${namespace}.services.ente-auth;
|
cfg = config.${namespace}.services.ente-auth;
|
||||||
|
|
||||||
|
enteApp =
|
||||||
|
cfg.package.override {
|
||||||
|
extraBuildEnv = {
|
||||||
|
NEXT_PUBLIC_ENTE_ENDPOINT = "https://ente-api.monapona.dev";
|
||||||
|
NEXT_TELEMETRY_DISABLED = "1";
|
||||||
|
};
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.${namespace}.services.ente-auth = {
|
options.${namespace}.services.ente-auth = {
|
||||||
|
@ -49,7 +57,7 @@ in
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
useACMEHost = "stahl.sh";
|
useACMEHost = "stahl.sh";
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
root = "${cfg.package}";
|
root = enteApp;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -39,7 +39,6 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
env = extraBuildEnv;
|
env = extraBuildEnv;
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
export NEXT_PUBLIC_ENTE_ENDPOINT=https://ente-api.monapona.dev
|
|
||||||
yarn build:auth
|
yarn build:auth
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue