e38f40732f
Build and Push Docker Images Staging / build (push) Successful in 5m20s
ejobs.ro migrated to a Nuxt SPA - plain HTTP GET returns only the JS bundle. This change equips cv-search-job with a headless Chromium (Playwright 1.60) so it can fully render SPA pages before extracting job links. - Add UseHeadlessBrowser flag to JobProviderEntity, JobProviderConfig, and CvSearchDbContext; map it in JobTokenService.ToConfig so the flag is included in the session provider-config snapshot - Migration: add UseHeadlessBrowser column; fix ejobs.ro search URL (remove /user/ prefix that caused 404) and set UseHeadlessBrowser=true - HtmlJobSearcher: detect flag and dispatch to FetchWithPlaywrightAsync; plain-HTTP path is unchanged; NetworkIdle timeout falls back to partial content rather than failing outright - Dockerfile: download Playwright Chromium in the SDK build stage via npx; copy browser binaries to the final image; install Chromium system libs (Ubuntu noble t64 variants) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
34 lines
1.3 KiB
XML
34 lines
1.3 KiB
XML
<Project Sdk="Microsoft.NET.Sdk.Worker">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net10.0</TargetFramework>
|
|
<Nullable>enable</Nullable>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<RootNamespace>CvSearchJob</RootNamespace>
|
|
<AssemblyName>cv-search-job</AssemblyName>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- MailKit removed — email sending delegated to email-api service -->
|
|
<PackageReference Include="Microsoft.Extensions.Hosting" />
|
|
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" />
|
|
<PackageReference Include="Refit.HttpClientFactory" />
|
|
<PackageReference Include="Microsoft.Playwright" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Folder Include="logs\" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\..\Apis\cv-matcher-api-models\cv-matcher-api-models.csproj" />
|
|
<ProjectReference Include="..\..\Apis\email-api-models\email-api-models.csproj" />
|
|
<ProjectReference Include="..\..\Apis\cv-search-data\cv-search-data.csproj" />
|
|
<ProjectReference Include="..\..\Apis\common\common.csproj" />
|
|
<ProjectReference Include="..\..\Apis\email-data\email-data.csproj" />
|
|
<ProjectReference Include="..\..\Helpers\startup-helpers\startup-helpers.csproj" />
|
|
<ProjectReference Include="..\job-scheduler\job-scheduler.csproj" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|