Skip to content

Commit

Permalink
fix(env): fix invalid env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
PenPow committed Jul 29, 2023
1 parent e66fed4 commit 7c44d1c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$Commit = git rev-parse HEAD

docker compose build --build-arg GIT_COMMIT="$Commit" --build-arg ENVIRONMENT="DEVELOPMENT"
docker compose build --build-arg GIT_COMMIT="$Commit" --build-arg ENVIRONMENT="development"

if(!$?) { Exit $LASTEXITCODE }

Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
docker compose build --build-arg GIT_COMMIT=$(git rev-parse HEAD) --build-arg ENVIRONMENT="DEVELOPMENT"
docker compose build --build-arg GIT_COMMIT=$(git rev-parse HEAD) --build-arg ENVIRONMENT="development"

docker compose up --force-recreate
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ export const client = new SentryClient({
Sentry.init({
dsn: client.environment.SENTRY_DSN,
release: client.environment.GIT_COMMIT,
enabled: client.environment.NODE_ENV === "PRODUCTION",
environment: client.environment.NODE_ENV.toLowerCase(),
enabled: client.environment.NODE_ENV === "production",
environment: client.environment.NODE_ENV,
integrations: [
new Sentry.Integrations.Undici(),
new RewriteFrames({ root: "/usr/sentry/dist", prefix: "src/" }),
]
});

Sentry.setTags({
version: client.environment.NODE_ENV,
version: client.environment.GIT_COMMIT,
started_at: new Date(Date.now()).toUTCString(),
node_version: client.environment.NODE_VERSION
});
Expand Down

1 comment on commit 7c44d1c

@vercel
Copy link

@vercel vercel bot commented on 7c44d1c Jul 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment failed with the following error:

Resource is limited - try again in 23 hours (more than 100, code: "api-deployments-free-per-day").

Please sign in to comment.