Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Simplify web env templates

Manav Rathia9249fb14970
diff --git a/web/apps/accounts/.env.development b/web/apps/accounts/.env.development
index e2ea2bc8ae..704ac35550 100644
--- a/web/apps/accounts/.env.development
+++ b/web/apps/accounts/.env.development
@@ -1,6 +1,6 @@
-# Copy this file into `.env.local` and uncomment this to develop against apps
-# and server running on localhost.
+# Copy this file into `.env.development.local` and uncomment this to develop
+# against apps and server running on localhost.
#
-# For details, please see `apps/photos/.env.development`
+# For details, see `apps/photos/.env.development`
#NEXT_PUBLIC_ENTE_ENDPOINT = http://localhost:8080
diff --git a/web/apps/albums/.env b/web/apps/albums/.env
index 39f4bf1433..167512ccf9 100644
--- a/web/apps/albums/.env
+++ b/web/apps/albums/.env
@@ -1,12 +1,5 @@
NEXT_TELEMETRY_DISABLED = 1
-# For details on how Next.js loads environment files in this repo, see
-# `apps/photos/.env`.
-#
-# The albums app supports the same endpoint-related variable as the photos app:
-#
-# - `NEXT_PUBLIC_ENTE_ENDPOINT` for the API origin.
-#
-# Example:
+# For more details, see `apps/photos/.env`.
#
# NEXT_PUBLIC_ENTE_ENDPOINT = http://localhost:8080
diff --git a/web/apps/albums/.env.development b/web/apps/albums/.env.development
index a99c8bb974..704ac35550 100644
--- a/web/apps/albums/.env.development
+++ b/web/apps/albums/.env.development
@@ -1,6 +1,6 @@
-# Copy this file into `.env.local` or `.env.development.local` and uncomment
-# this to develop against apps and server running on localhost.
+# Copy this file into `.env.development.local` and uncomment this to develop
+# against apps and server running on localhost.
#
-# For details, please see `apps/photos/.env.development` and `apps/albums/.env`.
+# For details, see `apps/photos/.env.development`
#NEXT_PUBLIC_ENTE_ENDPOINT = http://localhost:8080
diff --git a/web/apps/photos/.env b/web/apps/photos/.env
index 9a1663166b..03f641e555 100644
--- a/web/apps/photos/.env
+++ b/web/apps/photos/.env
@@ -32,13 +32,9 @@
# - There is some additional logging
# - ... (search for isDevBuild to see all impacts)
#
-# Note that even in development build, the app still connects to the production
-# APIs by default (can be customized using the env vars below). This is usually
-# a good default, for example a customer cloning this repository would want to
-# build and run the client from source but still use their actual Ente account.
+# By default, the app connects to Ente's production API. Set this if you want
+# to point it at another Museum server.
-# The Ente API endpoint
-#
# NEXT_PUBLIC_ENTE_ENDPOINT = http://localhost:8080
# The JSON which describes the expected results of our integration tests. See
diff --git a/web/apps/photos/.env.development b/web/apps/photos/.env.development
index 230e5681bd..26381dbec6 100644
--- a/web/apps/photos/.env.development
+++ b/web/apps/photos/.env.development
@@ -1,12 +1,6 @@
-# Develop against a server running on localhost
-#
-# Copy this file to `.env.local` or `.env.development.local` and uncomment the
-# variable assignments below to give you a baseline setup. For more details, see
-# `.env`.
-#
-# Equivalent CLI command using environment variables would be
-#
-# NEXT_PUBLIC_ENTE_ENDPOINT=http://localhost:8080 yarn dev:photos
+# Copy this file into `.env.development.local` and uncomment this to develop
+# against apps and server running on localhost.
#
+# For details, see `.env`
#NEXT_PUBLIC_ENTE_ENDPOINT = http://localhost:8080