Compare commits

..

14 Commits

Author SHA1 Message Date
0f7cd94e14 ci: comment out secrets in workflow_call
All checks were successful
Monorepo Pipeline / ⚡ Prioritize Release (push) Successful in 3s
Monorepo Pipeline / 🧪 Test (push) Successful in 1m3s
Monorepo Pipeline / 🧹 Lint (push) Successful in 4m1s
Monorepo Pipeline / 🏗️ Build (push) Successful in 3m33s
Monorepo Pipeline / 🚀 Release (push) Has been skipped
Monorepo Pipeline / 🐳 Build Gatekeeper (Product) (push) Has been skipped
Monorepo Pipeline / 🐳 Build Build-Base (push) Has been skipped
Monorepo Pipeline / 🐳 Build Production Runtime (push) Has been skipped
2026-04-25 18:34:03 +02:00
2cc6512afa ci: restore prepare job with diagnostics and verbose install
All checks were successful
Monorepo Pipeline / ⚡ Prioritize Release (push) Successful in 7s
Monorepo Pipeline / 🧪 Test (push) Successful in 55s
Monorepo Pipeline / 🧹 Lint (push) Successful in 3m4s
Monorepo Pipeline / 🏗️ Build (push) Successful in 2m43s
Monorepo Pipeline / 🚀 Release (push) Has been skipped
Monorepo Pipeline / 🐳 Build Gatekeeper (Product) (push) Has been skipped
Monorepo Pipeline / 🐳 Build Build-Base (push) Has been skipped
Monorepo Pipeline / 🐳 Build Production Runtime (push) Has been skipped
2026-04-25 18:27:54 +02:00
151c98c884 ci: minimize prepare job for debugging
Some checks failed
Monorepo Pipeline / ⚡ Prioritize Release (push) Successful in 6s
Monorepo Pipeline / 🧪 Test (push) Successful in 1m7s
Monorepo Pipeline / 🏗️ Build (push) Has started running
Monorepo Pipeline / 🚀 Release (push) Has been cancelled
Monorepo Pipeline / 🐳 Build Gatekeeper (Product) (push) Has been cancelled
Monorepo Pipeline / 🐳 Build Build-Base (push) Has been cancelled
Monorepo Pipeline / 🐳 Build Production Runtime (push) Has been cancelled
Monorepo Pipeline / 🧹 Lint (push) Has been cancelled
2026-04-25 18:24:29 +02:00
ba17d7940e ci: add more diagnostics to prepare job
Some checks failed
Monorepo Pipeline / ⚡ Prioritize Release (push) Successful in 3s
Monorepo Pipeline / 🚀 Release (push) Has been cancelled
Monorepo Pipeline / 🐳 Build Gatekeeper (Product) (push) Has been cancelled
Monorepo Pipeline / 🐳 Build Build-Base (push) Has been cancelled
Monorepo Pipeline / 🐳 Build Production Runtime (push) Has been cancelled
Monorepo Pipeline / 🧹 Lint (push) Has been cancelled
Monorepo Pipeline / 🏗️ Build (push) Has been cancelled
Monorepo Pipeline / 🧪 Test (push) Has been cancelled
2026-04-25 18:23:39 +02:00
46120dbd56 ci: remove docker cleanup from prepare job
Some checks failed
Monorepo Pipeline / ⚡ Prioritize Release (push) Successful in 5s
Monorepo Pipeline / 🧪 Test (push) Successful in 58s
Monorepo Pipeline / 🚀 Release (push) Has been cancelled
Monorepo Pipeline / 🐳 Build Gatekeeper (Product) (push) Has been cancelled
Monorepo Pipeline / 🐳 Build Build-Base (push) Has been cancelled
Monorepo Pipeline / 🐳 Build Production Runtime (push) Has been cancelled
Monorepo Pipeline / 🏗️ Build (push) Has been cancelled
Monorepo Pipeline / 🧹 Lint (push) Has been cancelled
2026-04-25 18:22:11 +02:00
571c4797fa ci: add diagnostics to prepare job
Some checks failed
Monorepo Pipeline / ⚡ Prioritize Release (push) Successful in 2s
Monorepo Pipeline / 🧪 Test (push) Successful in 58s
Monorepo Pipeline / 🚀 Release (push) Has been cancelled
Monorepo Pipeline / 🐳 Build Gatekeeper (Product) (push) Has been cancelled
Monorepo Pipeline / 🐳 Build Build-Base (push) Has been cancelled
Monorepo Pipeline / 🐳 Build Production Runtime (push) Has been cancelled
Monorepo Pipeline / 🧹 Lint (push) Has been cancelled
Monorepo Pipeline / 🏗️ Build (push) Has been cancelled
2026-04-25 18:18:21 +02:00
c7d107a578 fix: use standard npm registry host
Some checks failed
Monorepo Pipeline / ⚡ Prioritize Release (push) Successful in 1s
Monorepo Pipeline / 🧪 Test (push) Successful in 1m8s
Monorepo Pipeline / 🏗️ Build (push) Successful in 3m27s
Monorepo Pipeline / 🧹 Lint (push) Successful in 3m43s
Monorepo Pipeline / 🚀 Release (push) Has been skipped
Monorepo Pipeline / 🐳 Build Gatekeeper (Product) (push) Has been skipped
Monorepo Pipeline / 🐳 Build Build-Base (push) Has been skipped
Monorepo Pipeline / 🐳 Build Production Runtime (push) Has been skipped
🏥 Server Maintenance / 🧹 Prune & Clean (push) Failing after 4s
2026-04-24 12:16:08 +02:00
5f50e98a0a fix: reorder steps and add workspace wipe
All checks were successful
Monorepo Pipeline / ⚡ Prioritize Release (push) Successful in 2s
Monorepo Pipeline / 🧪 Test (push) Successful in 1m12s
Monorepo Pipeline / 🏗️ Build (push) Successful in 4m9s
Monorepo Pipeline / 🧹 Lint (push) Successful in 4m31s
Monorepo Pipeline / 🚀 Release (push) Has been skipped
Monorepo Pipeline / 🐳 Build Gatekeeper (Product) (push) Has been skipped
Monorepo Pipeline / 🐳 Build Build-Base (push) Has been skipped
Monorepo Pipeline / 🐳 Build Production Runtime (push) Has been skipped
2026-04-24 12:08:39 +02:00
45f831ca1c fix: improve registry auth robustness
All checks were successful
Monorepo Pipeline / ⚡ Prioritize Release (push) Successful in 1s
Monorepo Pipeline / 🧪 Test (push) Successful in 40s
Monorepo Pipeline / 🧹 Lint (push) Successful in 2m48s
Monorepo Pipeline / 🏗️ Build (push) Successful in 2m40s
Monorepo Pipeline / 🚀 Release (push) Has been skipped
Monorepo Pipeline / 🐳 Build Gatekeeper (Product) (push) Has been skipped
Monorepo Pipeline / 🐳 Build Build-Base (push) Has been skipped
Monorepo Pipeline / 🐳 Build Production Runtime (push) Has been skipped
2026-04-24 11:59:01 +02:00
73356cca30 fix: harden docker prune steps
All checks were successful
Monorepo Pipeline / ⚡ Prioritize Release (push) Successful in 1s
Monorepo Pipeline / 🧪 Test (push) Successful in 1m0s
Monorepo Pipeline / 🏗️ Build (push) Successful in 2m35s
Monorepo Pipeline / 🧹 Lint (push) Successful in 2m50s
Monorepo Pipeline / 🚀 Release (push) Has been skipped
Monorepo Pipeline / 🐳 Build Gatekeeper (Product) (push) Has been skipped
Monorepo Pipeline / 🐳 Build Build-Base (push) Has been skipped
Monorepo Pipeline / 🐳 Build Production Runtime (push) Has been skipped
2026-04-24 11:53:14 +02:00
b7e630c1d8 chore: harden runner hygiene with aggressive cleanup
All checks were successful
Monorepo Pipeline / ⚡ Prioritize Release (push) Successful in 1s
Monorepo Pipeline / 🧪 Test (push) Successful in 42s
Monorepo Pipeline / 🧹 Lint (push) Successful in 2m14s
Monorepo Pipeline / 🏗️ Build (push) Successful in 1m53s
Monorepo Pipeline / 🚀 Release (push) Has been skipped
Monorepo Pipeline / 🐳 Build Gatekeeper (Product) (push) Has been skipped
Monorepo Pipeline / 🐳 Build Build-Base (push) Has been skipped
Monorepo Pipeline / 🐳 Build Production Runtime (push) Has been skipped
2026-04-24 11:05:56 +02:00
13c8bc29ae chore: add blender-mv utility
Some checks failed
Monorepo Pipeline / ⚡ Prioritize Release (push) Successful in 4s
Monorepo Pipeline / 🧪 Test (push) Successful in 54s
Monorepo Pipeline / 🧹 Lint (push) Successful in 2m43s
Monorepo Pipeline / 🏗️ Build (push) Successful in 2m14s
Monorepo Pipeline / 🚀 Release (push) Has been skipped
Monorepo Pipeline / 🐳 Build Gatekeeper (Product) (push) Has been skipped
Monorepo Pipeline / 🐳 Build Build-Base (push) Has been skipped
Monorepo Pipeline / 🐳 Build Production Runtime (push) Has been skipped
🏥 Server Maintenance / 🧹 Prune & Clean (push) Failing after 8s
2026-04-21 18:47:53 +02:00
51a892fd76 fix(next-config): harden rewrite precedence
Some checks failed
Monorepo Pipeline / ⚡ Prioritize Release (push) Successful in 1s
Monorepo Pipeline / 🧪 Test (push) Successful in 1m11s
Monorepo Pipeline / 🏗️ Build (push) Successful in 3m2s
Monorepo Pipeline / 🧹 Lint (push) Successful in 3m15s
Monorepo Pipeline / 🚀 Release (push) Has been skipped
Monorepo Pipeline / 🐳 Build Gatekeeper (Product) (push) Has been skipped
Monorepo Pipeline / 🐳 Build Build-Base (push) Has been skipped
Monorepo Pipeline / 🐳 Build Production Runtime (push) Has been skipped
🏥 Server Maintenance / 🧹 Prune & Clean (push) Failing after 17s
2026-04-14 15:38:30 +02:00
9cc8e573ec fix(next-config): merge custom rewrites properly instead of overriding
All checks were successful
Monorepo Pipeline / ⚡ Prioritize Release (push) Successful in 2s
Monorepo Pipeline / 🧪 Test (push) Successful in 1m7s
Monorepo Pipeline / 🏗️ Build (push) Successful in 3m2s
Monorepo Pipeline / 🧹 Lint (push) Successful in 3m13s
Monorepo Pipeline / 🚀 Release (push) Has been skipped
Monorepo Pipeline / 🐳 Build Gatekeeper (Product) (push) Has been skipped
Monorepo Pipeline / 🐳 Build Build-Base (push) Has been skipped
Monorepo Pipeline / 🐳 Build Production Runtime (push) Has been skipped
2026-04-14 14:48:02 +02:00
3 changed files with 235 additions and 34 deletions

View File

@@ -11,19 +11,19 @@ on:
description: 'The internal project name for notifications'
required: true
type: string
secrets:
GOTIFY_URL:
required: true
GOTIFY_TOKEN:
required: true
GATEKEEPER_PASSWORD:
required: true
NPM_TOKEN:
required: false
MINTEL_PRIVATE_TOKEN:
required: false
GITEA_PAT:
required: false
# secrets:
# GOTIFY_URL:
# required: true
# GOTIFY_TOKEN:
# required: true
# GATEKEEPER_PASSWORD:
# required: true
# NPM_TOKEN:
# required: false
# MINTEL_PRIVATE_TOKEN:
# required: false
# GITEA_PAT:
# required: false
jobs:
prepare:
@@ -34,30 +34,33 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 10
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 10
- name: 🔐 Registry Auth
run: |
echo "@mintel:registry=https://git.infra.mintel.me/api/packages/mmintel/npm" > .npmrc
echo "//git.infra.mintel.me/api/packages/mmintel/npm/:_authToken=${{ secrets.NPM_TOKEN || secrets.MINTEL_PRIVATE_TOKEN || secrets.GITEA_PAT }}" >> .npmrc
REGISTRY="${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}"
echo "@mintel:registry=https://$REGISTRY" > .npmrc
echo "//$REGISTRY/:_authToken=${{ secrets.NPM_TOKEN || secrets.GITEA_PAT || secrets.MINTEL_PRIVATE_TOKEN }}" >> .npmrc
- name: 🔍 Diagnostics
run: |
echo "👤 User: $(id)"
echo "📂 Directory: $(pwd)"
echo "📂 Disk Space:"
df -h
- name: Install dependencies
run: |
pnpm store prune
pnpm install --no-frozen-lockfile
- name: 📦 Archive dependencies
uses: actions/upload-artifact@v4
with:
name: node_modules
path: |
node_modules
.npmrc
retention-days: 1
rm -rf .next .turbo node_modules || true
pnpm install --no-frozen-lockfile --reporter=append-only
- name: 📦 Archive dependencies (Debug)
run: |
echo "📦 node_modules size:"
du -sh node_modules || echo "No node_modules"
static:
name: 🔍 Static Analysis

177
blender-mv.sh Executable file
View File

@@ -0,0 +1,177 @@
#!/usr/bin/env bash
# blender-mv: A smart file/directory mover that automatically updates Blender paths
set -e
print_usage() {
echo "Usage: blender-mv [OPTIONS] SOURCE DEST"
echo ""
echo "Options:"
echo " --search-project <dir> Scan this specific project directory for .blend files"
echo " to update (useful if you move an external asset folder,"
echo " and old .blend files referencing it are elsewhere)."
echo ""
echo "Example: blender-mv ./old_folder ./new_folder"
}
SEARCH_PROJECT=""
# Parse arguments
while [[ "$#" -gt 0 ]]; do
case $1 in
--search-project) SEARCH_PROJECT="$2"; shift 2 ;;
-h|--help) print_usage; exit 0 ;;
*)
if [[ -z "$SOURCE" ]]; then
SOURCE="$1"
elif [[ -z "$DEST" ]]; then
DEST="$1"
else
echo "Unknown parameter passed: $1"
print_usage
exit 1
fi
shift
;;
esac
done
if [[ -z "$SOURCE" || -z "$DEST" ]]; then
echo "Error: Both SOURCE and DEST must be provided."
print_usage
exit 1
fi
if [[ ! -e "$SOURCE" ]]; then
echo "Error: Source path '$SOURCE' does not exist."
exit 1
fi
# Function to get absolute normalized path (handles missing destination gracefully)
get_abs_path() {
python3 -c 'import os,sys; print(os.path.normpath(os.path.abspath(sys.argv[1])))' "$1" 2>/dev/null
}
# Resolve source before moving
ABS_SOURCE=$(get_abs_path "$SOURCE")
# Determine resulting target path
if [[ -d "$DEST" ]]; then
# If DEST is an existing dir, standard mv puts SOURCE inside it
BASENAME_SOURCE=$(basename "$SOURCE")
ABS_DEST=$(get_abs_path "$DEST/$BASENAME_SOURCE")
else
# Placed exactly at DEST (rename or target dir doesn't exist yet)
ABS_DEST=$(get_abs_path "$DEST")
fi
echo "Moving: $SOURCE -> $DEST"
mv "$SOURCE" "$DEST"
echo "Replacing paths in Blender's recent-files lists..."
# Find all recent-files.txt across Blender versions and replace the string
find "$HOME/Library/Application Support/Blender" -type f -name "recent-files.txt" 2>/dev/null | while read -r RECENT_FILE; do
# Using sed with alternative delimiter to avoid path interference
sed -i '' "s|${ABS_SOURCE}|${ABS_DEST}|g" "$RECENT_FILE"
done
# Prepare the embedded Python payload to update blend paths
TMP_PY=$(mktemp /tmp/blender_update_paths.XXXXXX.py)
cat << 'EOF' > "$TMP_PY"
import bpy
import sys
def replace_in_prop(prop, old_path, new_path):
if prop and isinstance(prop, str) and old_path in prop:
return prop.replace(old_path, new_path)
return prop
def run():
# Args are passed after `--`
if '--' not in sys.argv:
return
idx = sys.argv.index('--')
if len(sys.argv) <= idx + 2:
return
old_path = sys.argv[idx + 1]
new_path = sys.argv[idx + 2]
changed = False
# 1. Libraries (Linked objects/collections)
for lib in bpy.data.libraries:
new_fp = replace_in_prop(lib.filepath, old_path, new_path)
if new_fp != lib.filepath:
lib.filepath = new_fp
changed = True
# 2. Images (Textures, Env Maps)
for img in bpy.data.images:
new_fp = replace_in_prop(img.filepath, old_path, new_path)
if new_fp != img.filepath:
img.filepath = new_fp
changed = True
# 3. Cache files (Alembic/VDB)
for cache in bpy.data.cache_files:
new_fp = replace_in_prop(cache.filepath, old_path, new_path)
if new_fp != cache.filepath:
cache.filepath = new_fp
changed = True
# 4. Fonts
for font in bpy.data.fonts:
new_fp = replace_in_prop(font.filepath, old_path, new_path)
if new_fp != font.filepath:
font.filepath = new_fp
changed = True
# 5. Video strips
for scene in bpy.data.scenes:
if scene.sequence_editor:
for strip in scene.sequence_editor.sequences_all:
if strip.type in ('MOVIE', 'IMAGE'):
new_fp = replace_in_prop(strip.filepath, old_path, new_path)
if new_fp != strip.filepath:
strip.filepath = new_fp
changed = True
if changed:
print(f"[*] Updated paths in {bpy.data.filepath}")
bpy.ops.wm.save_mainfile()
try:
run()
except Exception as e:
print(f"[!] Error updating blend file paths: {e}")
EOF
# Determine what to search for blend files
if [[ -n "$SEARCH_PROJECT" ]]; then
SEARCH_ROOT=$(get_abs_path "$SEARCH_PROJECT")
echo "Scanning project root '$SEARCH_ROOT' for .blend files..."
elif [[ -d "$ABS_DEST" ]]; then
SEARCH_ROOT="$ABS_DEST"
echo "Scanning moved directory for .blend files..."
elif [[ "$ABS_DEST" == *.blend ]]; then
SEARCH_ROOT="$ABS_DEST"
echo "Updating moved .blend file..."
else
echo "No project root defined and moved object is not a directory or .blend file."
echo "Finished."
rm -f "$TMP_PY"
exit 0
fi
# Execute headless blender on all found blend files
if [[ -d "$SEARCH_ROOT" ]]; then
find "$SEARCH_ROOT" -type f -name "*.blend" -print0 | while IFS= read -r -d '' BLEND_FILE; do
blender -b "$BLEND_FILE" -P "$TMP_PY" -- "$ABS_SOURCE" "$ABS_DEST" >/dev/null 2>&1 || echo "Warning: Failed to process $BLEND_FILE"
done
elif [[ -f "$SEARCH_ROOT" && "$SEARCH_ROOT" == *.blend ]]; then
blender -b "$SEARCH_ROOT" -P "$TMP_PY" -- "$ABS_SOURCE" "$ABS_DEST" >/dev/null 2>&1 || echo "Warning: Failed to process $SEARCH_ROOT"
fi
rm -f "$TMP_PY"
echo "Success: Move complete and paths updated."

View File

@@ -8,11 +8,6 @@ import path from "node:path";
export const baseNextConfig = {
output: "standalone",
turbopack: {},
experimental: {
serverActions: {
allowedOrigins: ["*.klz-cables.com", "*.branch.klz-cables.com", "localhost:3000", "*.mintel.me"],
},
},
images: {
dangerouslyAllowSVG: true,
contentDispositionType: "attachment",
@@ -58,6 +53,31 @@ const withMintelConfig = (config) => {
let nextConfig = { ...baseNextConfig, ...config };
// Explicitly merge rewrites
nextConfig.rewrites = async () => {
const defaultRewrites = await baseNextConfig.rewrites();
let customRewrites = {};
if (typeof config.rewrites === 'function') {
customRewrites = await config.rewrites();
} else if (Array.isArray(config.rewrites)) {
customRewrites = config.rewrites;
}
if (Array.isArray(customRewrites)) {
return {
beforeFiles: [...customRewrites, ...defaultRewrites],
afterFiles: [],
fallback: [],
};
}
return {
beforeFiles: [...(customRewrites.beforeFiles || []), ...defaultRewrites],
afterFiles: customRewrites.afterFiles || [],
fallback: customRewrites.fallback || [],
};
};
if (hasI18nConfig) {
const withNextIntl = createNextIntlPlugin();
nextConfig = withNextIntl(nextConfig);
@@ -76,3 +96,4 @@ const withMintelConfig = (config) => {
};
export default withMintelConfig;