diff --git a/deploy-cloudflare.ps1 b/deploy-cloudflare.ps1 index a3ac9eb..4c54310 100644 --- a/deploy-cloudflare.ps1 +++ b/deploy-cloudflare.ps1 @@ -15,6 +15,17 @@ if (-not (Test-Path (Join-Path $publishDirectory "index.html"))) { throw "Folder wersja1 nie zawiera index.html." } +# The repository root is the editing source; keep the Cloudflare bundle in sync. +$publishFiles = @("index.html", "styles.css", "app.js", "atut_baza.csv") +foreach ($file in $publishFiles) { + $source = Join-Path $root $file + $target = Join-Path $publishDirectory $file + if (-not (Test-Path $source)) { + throw "Brak pliku źródłowego: $source" + } + Copy-Item $source $target -Force +} + if (-not $ProjectName) { $ProjectName = $env:CLOUDFLARE_PAGES_PROJECT } diff --git a/wersja1/index.html b/wersja1/index.html index 8a7d489..b974fe0 100644 --- a/wersja1/index.html +++ b/wersja1/index.html @@ -38,7 +38,7 @@
-
Wpisz minimum 4 znaki. Wyniki aktualizują się automatycznie.
+
Wpisz minimum 3 znaki. Wyniki aktualizują się automatycznie.