Some checks failed
CI / go (push) Waiting to run
CI / docker (push) Waiting to run
CI / lint-go (push) Waiting to run
CI / lint-docs (push) Waiting to run
CI / check-paperclip (push) Waiting to run
Deploy static site / Deploy to GitHub Pages (push) Has been cancelled
Deploy static site / Deploy via Docker to hatch.surf (push) Has been cancelled
Resolved conflicts by taking GitHub versions for: - .dockerignore, .gitignore, Dockerfile, README.md, docker-compose.yml Kept deploy.sh updated to: - Pull from GitHub (primary source) - Push to Gitea (push-mirror) - Build from site/ directory (GitHub structure) Co-Authored-By: Paperclip <noreply@paperclip.ing>
31 lines
1006 B
JavaScript
31 lines
1006 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
Object.defineProperty(exports, "generateBuildId", {
|
|
enumerable: true,
|
|
get: function() {
|
|
return generateBuildId;
|
|
}
|
|
});
|
|
async function generateBuildId(generate, fallback) {
|
|
let buildId = await generate();
|
|
// If there's no buildId defined we'll fall back
|
|
if (buildId === null) {
|
|
// We also create a new buildId if it contains the word `ad` to avoid false
|
|
// positives with ad blockers
|
|
while(!buildId || /ad/i.test(buildId)){
|
|
buildId = fallback();
|
|
}
|
|
}
|
|
if (typeof buildId !== 'string') {
|
|
throw Object.defineProperty(new Error('generateBuildId did not return a string. https://nextjs.org/docs/messages/generatebuildid-not-a-string'), "__NEXT_ERROR_CODE", {
|
|
value: "E455",
|
|
enumerable: false,
|
|
configurable: true
|
|
});
|
|
}
|
|
return buildId.trim();
|
|
}
|
|
|
|
//# sourceMappingURL=generate-build-id.js.map
|