diff --git a/src/kalastatic.js b/src/kalastatic.js index 529a23f..e35548a 100644 --- a/src/kalastatic.js +++ b/src/kalastatic.js @@ -233,7 +233,10 @@ export const kstat = async (config) => { config.destination = config.destination || 'build'; // Add the base url if set by the environmetn and / otherwise. + // TODO: The `base_url` variable will be deprecated in favor of `env.base_url`. renderData.base_url = process.env.base_url || ""; + // Add all the environment variables to the `env` object in the render data. + renderData.env = process.env; // Delete all the destination files/directories in each source and assets so we don't get orphans. await clearDestination(config.destination);