Skip to content

Commit fd41acb

Browse files
authored
chore: add debug log (#1692)
1 parent 8a4a66a commit fd41acb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/server/handle/create-resource-url.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { assert, createUrl } from "@acdh-oeaw/lib";
33
import { env } from "@/config/env.config";
44

55
export function createResourceUrl(path: string): URL {
6-
const message = "Invalid resource path.";
6+
const message = `Invalid resource path: ${path}`;
77

88
assert(path.endsWith("/index.mdx"), message);
99

scripts/handle/create-handle.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if [[ ${VERCEL_ENV} != "production" || ${VERCEL_GIT_COMMIT_REF} != "main" ]]; th
55
exit 0
66
fi
77

8-
files=$(git diff --diff-filter=AMR --name-only ${VERCEL_GIT_PREVIOUS_SHA} ${VERCEL_GIT_COMMIT_SHA} -- 'content/*/curricula/**/*.mdx' 'content/*/resources/**/*.mdx' | xargs)
8+
files=$(git diff --diff-filter=AMR --name-only ${VERCEL_GIT_PREVIOUS_SHA} ${VERCEL_GIT_COMMIT_SHA} -- 'content/*/curricula/**/index.mdx' 'content/*/resources/**/index.mdx' | xargs)
99

1010
for file in $files; do
1111
echo "Processing ${file}..."

0 commit comments

Comments
 (0)