Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shorthand for IS_BUILD_MODE #2268

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Change to IS_BUILD_MODE
  • Loading branch information
mcgear committed Jan 19, 2024
commit 97afc143bd9748d0aa3bec678a9ee71894a677e5
4 changes: 2 additions & 2 deletions src/server/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
*
* @example
* ```
* if (IS_BUILDING) {
* if (IS_BUILD_MODE) {
* console.log('This is code run during bulid!');

Check warning on line 9 in src/server/utils.ts

View workflow job for this annotation

GitHub Actions / test (v1.x, ubuntu-latest)

"bulid" should be "build".
* } else {
* console.log('This is code run without bulid!');

Check warning on line 11 in src/server/utils.ts

View workflow job for this annotation

GitHub Actions / test (v1.x, ubuntu-latest)

"bulid" should be "build".
* }
* ```
*
* Use this to restrict aspects of code from running during ahead of time builds.
*/
export const IS_BUILDING = Deno.args.includes("build");
export const IS_BUILD_MODE = Deno.args.includes("build");
Loading