refactor: drop postbuild step

This commit is contained in:
Philipp Dormann 2024-12-11 22:45:20 +01:00
parent 4771bf1359
commit b21ad636ad
Signed by: philipp
GPG Key ID: 3BB9ADD52DCA4314
3 changed files with 1 additions and 9 deletions

View File

@ -7,7 +7,6 @@ COPY . .
RUN npm i -g pnpm@9
RUN pnpm i --frozen-lockfile
RUN pnpm build
RUN pnpm postbuild
# final image
FROM registry.odit.services/library/nginx-brotli:3.15 AS final

View File

@ -1,6 +0,0 @@
import { existsSync, writeFileSync, readFileSync } from "node:fs";
if (existsSync("./dist/index.html")) {
const content = readFileSync("./dist/index.html", { encoding: "utf8" });
const newcontent = content.replace(`"/env.js"`, `"./env.js"`);
writeFileSync("./dist/index.html", newcontent);
}

View File

@ -5,8 +5,7 @@
"scripts": {
"dev": "vite",
"build": "vite build",
"release": "release-it",
"postbuild": "node env_fix.js"
"release": "release-it"
},
"dependencies": {
"@fontsource/athiti": "^5.1.0",