I am trying to use environment variables with onSchedule. But it only accepts a string, not an Expression<string> or similar. Although value() makes it compile, it will not actually deploy.
Can I use onSchedule with Parameterized configuration as recommended in the docs? Or do I need to fall back to environment variables?
import { onSchedule } from "firebase-functions/v2/scheduler";
import { defineString} from "firebase-functions/params";
const schedule = defineString("REFRESH_SCHEDULE");
export const refreshSchedule = onSchedule(
{
schedule: schedule, // Adding .value() makes it compile, but then it doesn't deploy.
},
async () => {
// Do Stuff
}
);