feat(admin): add production error center and refresh CMS dependencies

This commit is contained in:
Simo committed 2026-09-05 19:53:09 +02:00
1 parent c6b919c01d
commit 816e3875c2
47 files changed
+1545 -547

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
import { cp, mkdir } from "node:fs/promises";
import { createRequire } from "node:module";
import path from "node:path";
const require = createRequire(import.meta.url);
const source = path.dirname(require.resolve("tinymce/package.json"));
const target = path.resolve("public/vendor/tinymce");
await mkdir(target, { recursive: true });
for (const name of [
"tinymce.min.js",
"icons",
"models",
"plugins",
"skins",
"themes",
"license.md",
"notices.txt",
]) {
await cp(path.join(source, name), path.join(target, name), {
recursive: true,
});
}
+5
View File
@@ -0,0 +1,5 @@
// Production builds and CI do not need Git hooks or dev-only executables.
if (process.env.NODE_ENV !== "production" && !process.env.CI) {
const { default: husky } = await import("husky");
husky();
}