CI Pipeline / backend-test (push) Successful in 9m4s
CI Pipeline / frontend-test (push) Successful in 24s
CI Pipeline / frontend-build (push) Successful in 32s
CI Pipeline / backend-lint (push) Successful in 14s
CI Pipeline / backend-test (pull_request) Successful in 9m17s
CI Pipeline / frontend-test (pull_request) Successful in 24s
CI Pipeline / frontend-build (pull_request) Successful in 30s
CI Pipeline / backend-lint (pull_request) Successful in 10s
CI Pipeline / quality-gate (push) Successful in 2s
CI Pipeline / quality-gate (pull_request) Successful in 2s
- ThemeService: remove isPlatformBrowser guard so CSS custom properties are applied during SSR/prerender — server-rendered HTML now carries the correct color scheme and gradients (fixes missing colors on test site). - main.ts: add provideClientHydration() so Angular preserves the server- rendered DOM on the client instead of destroying and rebuilding it (fixes jarring full-page reload between static and dynamic versions). - Tests: update theme.service.spec.ts to match new behaviour, expand coverage with gradient tests and empty-value handling (9 tests). Fix structured-data.component.spec.ts import paths. All 54 tests pass.
11 lines
380 B
TypeScript
11 lines
380 B
TypeScript
import 'zone.js';
|
|
import { bootstrapApplication } from '@angular/platform-browser';
|
|
import { provideClientHydration } from '@angular/platform-browser';
|
|
import { appConfig } from './app/app.config';
|
|
import { App } from './app/app';
|
|
|
|
bootstrapApplication(App, {
|
|
...appConfig,
|
|
providers: [...appConfig.providers, provideClientHydration()],
|
|
}).catch((err) => console.error(err));
|