ente/web/packages
Manav Rathi 26b162c8dc
[web] Allow running the build outside of a git repository
This was found useful by @Bramas when building a Dockerfile of the web app
itself. See https://github.com/ente-io/ente/pull/1065.

Now, the GIT_SHA environment variable can just be undefined if we're not in a
git repository, and the code using it deals with that case explicitly.

**Tested by**

Temporarily inverted the isDevBuild flag, tehn

1. Ran the build normally and verified that the SHA continued to appear in the logs.

2. Ran the build after copying to a standalone folder without an associated git
   repository and verified that the SHA was skipped without causing the build to
   fail.
2024-03-13 11:15:12 +05:30
..
accounts Move into web/ 2024-03-01 12:21:07 +05:30
build-config Move into web/ 2024-03-01 12:21:07 +05:30
eslint-config Move into web/ 2024-03-01 12:21:07 +05:30
next [web] Allow running the build outside of a git repository 2024-03-13 11:15:12 +05:30
shared [web] Allow running the build outside of a git repository 2024-03-13 11:15:12 +05:30
ui Move into web/ 2024-03-01 12:21:07 +05:30
utils [web] Remove Sentry 2024-03-12 13:24:33 +05:30