Synchronizuj paczke Cloudflare przed wdrozeniem
Co-authored-by: Copilot <[email protected]>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
+1
-1
@@ -38,7 +38,7 @@
|
||||
<button id="clearButton" class="clear" type="button" aria-label="Wyczyść wyszukiwanie">×</button>
|
||||
</div>
|
||||
<div id="suggestions" class="suggestions" role="listbox" aria-label="Podpowiedzi wyszukiwania"></div>
|
||||
<div class="hint" id="searchHint">Wpisz minimum 4 znaki. Wyniki aktualizują się automatycznie.</div>
|
||||
<div class="hint" id="searchHint">Wpisz minimum 3 znaki. Wyniki aktualizują się automatycznie.</div>
|
||||
</section>
|
||||
|
||||
<section class="results-header">
|
||||
|
||||
Reference in New Issue
Block a user