creation site static coupe du monde 2026 sans Hugo

This commit is contained in:
2026-06-20 14:50:24 +02:00
parent 7f10e7a597
commit c00dd55b8d
52 changed files with 5376 additions and 38 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/env node
const fs = require("fs");
const path = require("path");
const env = process.argv[2];
const allowedEnvs = ["preprod", "prod"];
if (!allowedEnvs.includes(env)) {
console.error("Usage: node scripts/switch-site-config.js <preprod|prod>");
process.exit(1);
}
const projectRoot = path.resolve(__dirname, "../tutosport-static-project");
const source = path.join(projectRoot, "assets", "js", `site-config.${env}.js`);
const target = path.join(projectRoot, "assets", "js", "site-config.js");
fs.copyFileSync(source, target);
console.log(`Switched site-config.js to ${env}`);