feat(docker): build and serve with Node and npm instead of Nginx
This commit is contained in:
@@ -23,8 +23,11 @@ function getAllHtmlFiles(dir) {
|
||||
|
||||
test("Build & Link Integrity: Output inspection and link verification", () => {
|
||||
// Ensure fresh build exists
|
||||
if (!fs.existsSync(siteDir)) {
|
||||
execSync("npm run build", { stdio: "pipe" });
|
||||
if (!fs.existsSync(path.join(siteDir, "index.html"))) {
|
||||
execSync("npm run build", {
|
||||
stdio: "pipe",
|
||||
env: { ...process.env, SITE_DOMAIN: process.env.SITE_DOMAIN || "riverrooks.dev" }
|
||||
});
|
||||
}
|
||||
|
||||
// 1. Core Pages Exist
|
||||
|
||||
Reference in New Issue
Block a user