0.12.11 : fix template again
All checks were successful
Build release Docker image / Build Docker Images (push) Successful in 7m22s

This commit is contained in:
2025-11-30 21:43:22 +01:00
parent 5428ceb17b
commit ddf2ced098
4 changed files with 170 additions and 3 deletions

View File

@@ -14,7 +14,7 @@
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
},
"x-generation-date": "2025-11-30T20:21:42.995Z"
"x-generation-date": "2025-11-30T20:43:11.125Z"
},
"x-strapi-config": {
"plugins": [

View File

@@ -52,7 +52,8 @@ module.exports = (plugin) => {
const confirmUrl = `${process.env.NEXTJS_URL}/confirmation/submit?confirmation=${confirmationToken}`;
// Lecture du template HTML depuis le fichier
const htmlPath = path.join(__dirname, "confirmation.html");
const htmlPath = path.join(process.cwd(), "public", "confirmation.html");
let html = await fs.readFile(htmlPath, "utf-8");
// Remplacement des variables