I’m having trouble with the following code (it is sitting under /functions
and running fine). I have an hourly scheduled function also running on the same site that get the DEPLOY_ID
just fine.
const app = express();
const SITE_ID = process.env.SITE_ID;
console.log(SITE_ID); // this correctly logs
const DEPLOY_ID = process.env.DEPLOY_ID;
console.log(DEPLOY_ID); // this is undefined
const TOKEN = process.env.NETLIFY_AUTH_TOKEN;
console.log(TOKEN); // this correctly logs
This is express with serverless-http