ShaharMS
CDCloudflare Developers
•Created by ShaharMS on 8/20/2024 in #pages-help
Run a nodejs script right before website is deployed to transform the website's content
didnt know cloudflare was chill like that
17 replies
CDCloudflare Developers
•Created by ShaharMS on 8/20/2024 in #pages-help
Run a nodejs script right before website is deployed to transform the website's content
very surprising, wasnt thinking it would actually let me do filesystem changes
17 replies
CDCloudflare Developers
•Created by ShaharMS on 8/20/2024 in #pages-help
Run a nodejs script right before website is deployed to transform the website's content
Did everything - Tysm it worked :D
17 replies
CDCloudflare Developers
•Created by ShaharMS on 8/20/2024 in #pages-help
Run a nodejs script right before website is deployed to transform the website's content
damn well ill try that and get back to u
will take me some time since i need to move stuff around and edit abit
17 replies
CDCloudflare Developers
•Created by ShaharMS on 8/20/2024 in #pages-help
Run a nodejs script right before website is deployed to transform the website's content
just havent seen anything specific in the doc
17 replies
CDCloudflare Developers
•Created by ShaharMS on 8/20/2024 in #pages-help
Run a nodejs script right before website is deployed to transform the website's content
but will it actually permit it? it does filesystem stuff
17 replies
CDCloudflare Developers
•Created by ShaharMS on 8/20/2024 in #pages-help
Run a nodejs script right before website is deployed to transform the website's content
Ok, either i misunderstood or its not specifically what im asking for - i dont see any option for providing my own build tool - only run specific build commands for specific frameworks.
this project is vanilla html-css-js, so there arent any framework, and I have a build script that writes generates files.
To simplify my question - is there a way to get cloudflare to run
node .\compiler\auto-compile.mjs
, wait for it to finish, and then grab an output folder and use it as a site?17 replies
CDCloudflare Developers
•Created by ShaharMS on 8/20/2024 in #pages-help
Run a nodejs script right before website is deployed to transform the website's content
Thanks, rn I'm at work but will test this when I get home :)
17 replies
CDCloudflare Developers
•Created by ShaharMS on 8/20/2024 in #pages-help
Run a nodejs script right before website is deployed to transform the website's content
17 replies
CDCloudflare Developers
•Created by ShaharMS on 8/20/2024 in #pages-help
Run a nodejs script right before website is deployed to transform the website's content
the script in question: (ignore the script's persistency, a diffenret version of the script will be the one run by cloudflare:)
17 replies
CDCloudflare Developers
•Created by ShaharMS on 8/20/2024 in #pages-help
Run a nodejs script right before website is deployed to transform the website's content
Can post that script is necessary. The project version im talking about isnt deployed to cloudflare yet, but can be found in the repository:
https://github.com/ShaharMS/APBD-FoodList/tree/qol/main-site-integration
17 replies