ente/web/packages/next
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
..
.eslintrc.js Move into web/ 2024-03-01 12:21:07 +05:30
hello.ts Move into web/ 2024-03-01 12:21:07 +05:30
next.config.base.js [web] Allow running the build outside of a git repository 2024-03-13 11:15:12 +05:30
package.json Move into web/ 2024-03-01 12:21:07 +05:30
README.md Move into web/ 2024-03-01 12:21:07 +05:30
tsconfig.json Move into web/ 2024-03-01 12:21:07 +05:30

@/next

Like @/ui, but for things that require Next.

Packaging

This (internal) package exports a React TypeScript library. We rely on the importing project to transpile and bundle it.