To fix this problem follow the next steps:
-
be sure to find in astrakode-repository-frontend\projects\AstrakodeBCPortal\src\main.ts file this line fo code commented
// if (
// environment.SENTRY_DSN &&
// environment.TRACING_ORIGIN &&
// environment.TRACES_SAMPLE_RATE
// ) {
// Sentry.init({
// dsn: environment.SENTRY_DSN,
// environment: environment.production ? "prod" : "dev",
// autoSessionTracking: true,
// integrations: [
// new Integrations.BrowserTracing({
// tracingOrigins: environment.TRACING_ORIGIN,
// routingInstrumentation: Sentry.routingInstrumentation,
// }),
// ],
// // We recommend adjusting this value in production, or using tracesSampler
// // for finer control
// tracesSampleRate: environment.TRACES_SAMPLE_RATE,
// });
// }
- then be sure to have in the environment.ts file API_URL with 'api' as value
API_URL: "api",