mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-02-23 07:48:56 +00:00
new examples
This commit is contained in:
15
node/eleventy/eleventy.config.js
Normal file
15
node/eleventy/eleventy.config.js
Normal file
@@ -0,0 +1,15 @@
|
||||
module.exports = function(eleventyConfig) {
|
||||
// Build-time public var (baked into bundle)
|
||||
const buildPublicVar = process.env.BUILD_PUBLIC_VAR || 'default-value';
|
||||
console.log('=== Build-time Variables ===');
|
||||
console.log('BUILD_PUBLIC_VAR:', buildPublicVar);
|
||||
|
||||
eleventyConfig.addGlobalData('buildPublicVar', buildPublicVar);
|
||||
|
||||
return {
|
||||
dir: {
|
||||
input: "src",
|
||||
output: "_site"
|
||||
}
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user