From 7d07b6cd9b9635b5aeba8eedda1e429379776703 Mon Sep 17 00:00:00 2001 From: rapaf Date: Fri, 18 Sep 2026 19:34:06 +0200 Subject: [PATCH] Synchronizuj paczke Cloudflare przed wdrozeniem Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- deploy-cloudflare.ps1 | 11 +++++++++++ wersja1/index.html | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) 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.