This commit adds new Admin and Accounts pages, while also improving code by refactoring various portions such as extracting services from the join page and dynamically importing packages in logging and monitoring code. The build command is also removed from the WordPress package, and SWC minification is enabled in the Next.js configuration. Updated marketing content is also included in this commit.
10 lines
301 B
TypeScript
10 lines
301 B
TypeScript
import { registerInstrumentation } from '@kit/monitoring';
|
|
|
|
export function register() {
|
|
if (process.env.NEXT_RUNTIME !== 'nodejs') {
|
|
// Register monitoring instrumentation based on the
|
|
// MONITORING_INSTRUMENTATION_PROVIDER environment variable.
|
|
return registerInstrumentation();
|
|
}
|
|
}
|