Skip to content

Commit

Permalink
chore: add OTEL and some env defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
evereq committed Dec 2, 2023
1 parent 92f2ceb commit 9f0cd86
Show file tree
Hide file tree
Showing 6 changed files with 1,120 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Web Build & Deploy DEV
name: Web Build & Vercel Deploy DEV
on:
push:
branches:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Web Build & Deploy PROD
name: Web Build & Vercel Deploy PROD
on:
push:
branches:
Expand Down
6 changes: 3 additions & 3 deletions apps/web/app/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ export const RECAPTCHA_SITE_KEY = process.env.NEXT_PUBLIC_CAPTCHA_SITE_KEY;
export const RECAPTCHA_SECRET_KEY = process.env.CAPTCHA_SECRET_KEY;

export const GAUZY_API_SERVER_URL = process.env.GAUZY_API_SERVER_URL || 'https://api.gauzy.co/api';
export const INVITE_CALLBACK_URL = process.env.INVITE_CALLBACK_URL;
export const INVITE_CALLBACK_URL = process.env.INVITE_CALLBACK_URL || 'https://app.ever.team/auth/passcode';
export const INVITE_CALLBACK_PATH = '/auth/passcode';
export const VERIFY_EMAIL_CALLBACK_URL = process.env.VERIFY_EMAIL_CALLBACK_URL;
export const VERIFY_EMAIL_CALLBACK_URL = process.env.VERIFY_EMAIL_CALLBACK_URL || 'https://app.ever.team/verify-email';
export const VERIFY_EMAIL_CALLBACK_PATH = '/verify-email';
export const GA_MEASUREMENT_ID = process.env.NEXT_PUBLIC_GA_MEASUREMENT_ID;

Expand Down Expand Up @@ -73,7 +73,7 @@ export const MEET_JWT_TOKEN_COOKIE_NAME = 'meet-jwt-session';

// BOARD board
export const BOARD_APP_DOMAIN = process.env.NEXT_PUBLIC_BOARD_APP_DOMAIN || 'https://board.ever.team';
export const BOARD_BACKEND_POST_URL = process.env.NEXT_PUBLIC_BOARD_BACKEND_POST_URL;
export const BOARD_BACKEND_POST_URL = process.env.NEXT_PUBLIC_BOARD_BACKEND_POST_URL || 'https://jsonboard.ever.team/api/v2/post/';
export const BOARD_FIREBASE_CONFIG = process.env.NEXT_PUBLIC_BOARD_FIREBASE_CONFIG;

// Jitsu
Expand Down
20 changes: 10 additions & 10 deletions apps/web/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@ const nextConfig = {
}, // Optional build-time configuration options
sentry: {
// For all available options, see: https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/

// Upload a larger set of source maps for prettier stack traces (increases build time)
widenClientFileUpload: true,

// Transpiles SDK to be compatible with IE11 (increases bundle size)
transpileClientSDK: true,

// Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers (increases server load)
tunnelRoute: '/monitoring',

// Hides source maps from generated client bundles
hideSourceMaps: true,

// Automatically tree-shake Sentry logger statements to reduce bundle size
disableLogger: true
}
Expand All @@ -50,18 +50,18 @@ const nextConfig = {
// Injected content via Sentry wizard below
const { withSentryConfig } = require('@sentry/nextjs');

const sentryWebpackPluginOptions = {
org: process.env.SENTRY_ORG,
project: process.env.SENTRY_PROJECT,
const sentryWebpackPluginOptions = {
org: process.env.SENTRY_ORG || 'ever-co',
project: process.env.SENTRY_PROJECT || 'ever-teams-web',

// An auth token is required for uploading source maps.
authToken: process.env.SENTRY_AUTH_TOKEN,

silent: true, // Suppresses all logs

dryRun: process.env.NODE_ENV !== "production"
// Additional config options for the Sentry Webpack plugin.

// Additional config options for the Sentry Webpack plugin.
// Keep in mind that https://github.com/getsentry/sentry-webpack-plugin#options.
};

Expand Down
8 changes: 7 additions & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,13 @@
"string-to-color": "^2.2.2",
"tailwind-merge": "^1.14.0",
"tailwindcss": "^3.1.8",
"tailwindcss-animate": "^1.0.6"
"tailwindcss-animate": "^1.0.6",
"@opentelemetry/api": "^1.7.0",

Check warning on line 91 in apps/web/package.json

View workflow job for this annotation

GitHub Actions / Cspell

Unknown word (opentelemetry)
"@opentelemetry/sdk-node": "^0.45.1",

Check warning on line 92 in apps/web/package.json

View workflow job for this annotation

GitHub Actions / Cspell

Unknown word (opentelemetry)
"@opentelemetry/auto-instrumentations-node": "^0.40.1",

Check warning on line 93 in apps/web/package.json

View workflow job for this annotation

GitHub Actions / Cspell

Unknown word (opentelemetry)
"@opentelemetry/exporter-trace-otlp-http": "^0.45.1",

Check warning on line 94 in apps/web/package.json

View workflow job for this annotation

GitHub Actions / Cspell

Unknown word (opentelemetry)

Check warning on line 94 in apps/web/package.json

View workflow job for this annotation

GitHub Actions / Cspell

Unknown word (otlp)
"@opentelemetry/resources": "^1.18.1",

Check warning on line 95 in apps/web/package.json

View workflow job for this annotation

GitHub Actions / Cspell

Unknown word (opentelemetry)
"@opentelemetry/semantic-conventions": "^1.18.1"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.9",
Expand Down
Loading

0 comments on commit 9f0cd86

Please sign in to comment.