creation site static coupe du monde 2026 sans Hugo
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
mailjet
|
||||
|
||||
api_key : 4c842aa1c68a27041162bfda47348d8f
|
||||
secret : c641ad3e97364b926e9ca713c9cb7914
|
||||
+19
@@ -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}`);
|
||||
Reference in New Issue
Block a user