fix: repair build
Some checks failed
Build and Push Docker Image / build (push) Has been cancelled

This commit is contained in:
2026-02-13 14:48:46 +01:00
parent 15f6264bff
commit de654124d0
5 changed files with 11 additions and 6 deletions

View File

@@ -2,7 +2,7 @@ import { defineNuxtModule, useLogger } from "@nuxt/kit";
import { readdir, readFile, writeFile } from "fs/promises";
import { join, relative, parse } from "path";
import { existsSync, watch } from "fs";
import { execSync } from "child_process";
// import { execSync } from "child_process";
import sharp from "sharp";
type AtlasRect = {
@@ -278,7 +278,7 @@ ${sp} }`;
}
};
nuxt.hook("build:before", generateAssets);
await generateAssets();
if (nuxt.options.dev) {
const watchAndRegenerate = (

View File

@@ -72,9 +72,7 @@ export default defineNuxtModule({
}
};
nuxt.hook("build:before", async () => {
await copyWebpFiles();
});
await copyWebpFiles();
if (nuxt.options.dev) {
nuxt.hook("ready", () => {