refactor: drop postbuild step
This commit is contained in:
parent
4771bf1359
commit
b21ad636ad
@ -7,7 +7,6 @@ COPY . .
|
|||||||
RUN npm i -g pnpm@9
|
RUN npm i -g pnpm@9
|
||||||
RUN pnpm i --frozen-lockfile
|
RUN pnpm i --frozen-lockfile
|
||||||
RUN pnpm build
|
RUN pnpm build
|
||||||
RUN pnpm postbuild
|
|
||||||
|
|
||||||
# final image
|
# final image
|
||||||
FROM registry.odit.services/library/nginx-brotli:3.15 AS final
|
FROM registry.odit.services/library/nginx-brotli:3.15 AS final
|
||||||
|
@ -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);
|
|
||||||
}
|
|
@ -5,8 +5,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"release": "release-it",
|
"release": "release-it"
|
||||||
"postbuild": "node env_fix.js"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fontsource/athiti": "^5.1.0",
|
"@fontsource/athiti": "^5.1.0",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user