Skip to content

Commit

Permalink
link checker
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisjofrank committed Jan 31, 2025
1 parent 382cb0d commit bfba4b9
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions _config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import "@std/dotenv/load";

import lume from "lume/mod.ts";
import checkUrls from "lume/plugins/check_urls.ts";
import esbuild from "lume/plugins/esbuild.ts";
import jsx from "lume/plugins/jsx_preact.ts";
import postcss from "lume/plugins/postcss.ts";
Expand Down Expand Up @@ -184,25 +183,6 @@ site.scopedUpdates(
(path) => path.startsWith("/api/deno/"),
);

const SKIP_CHECK_URLS = (Deno.env.get("SKIP_CHECK_URLS") || "false")
.toLowerCase();

if (SKIP_CHECK_URLS !== "true") {
log.info(`${cliNow()} Enabling broken-link checker`);

site.use(
checkUrls({
external: false, // Set to true to check external links
output: "_broken_links.json",
ignore: ["https://www.googletagmanager.com"],
}),
);
} else {
log.warn(
`${cliNow()} <cyan>checkUrls</cyan>: Skipping broken link check for local performance.`,
);
}

site.addEventListener("afterStartServer", () => {
log.warn(
`${cliNow()} Server available at <green>http://localhost:3000</green>`,
Expand Down

1 comment on commit bfba4b9

@deno-deploy
Copy link

@deno-deploy deno-deploy bot commented on bfba4b9 Jan 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to deploy:

UNCAUGHT_EXCEPTION

TypeError: Cannot read properties of undefined (reading 'GOOGLE_SDK_NODE_LOGGING')
    at Object.log (file:///node_modules/.deno/google-logging-utils@0.0.2/node_modules/google-logging-utils/build/src/logging-utils.js:356:36)
    at Object.<anonymous> (file:///node_modules/.deno/gcp-metadata@6.1.1/node_modules/gcp-metadata/build/src/index.js:52:20)
    at Object.<anonymous> (file:///node_modules/.deno/gcp-metadata@6.1.1/node_modules/gcp-metadata/build/src/index.js:409:4)
    at Module._compile (node:module:745:34)
    at loadMaybeCjs (node:module:770:10)
    at Object.Module._extensions..js (node:module:755:12)
    at Module.load (node:module:662:32)
    at Function.Module._load (node:module:534:12)
    at Module.require (node:module:681:19)
    at require (node:module:812:16)

Please sign in to comment.