Switch to Vercel's new Environment Variables system

This commit is contained in:
Sam Poder 2022-02-01 18:16:50 +08:00
parent cf9f5bffd2
commit 2c36f75dd9
2 changed files with 1 additions and 4 deletions

View file

@ -1,6 +1,6 @@
export default async function handler(req, res) {
// returns a url_private for the latest image posted in #dogs
const fileList = await fetch(`https://slack.com/api/files.list?token=${process.env.SCRAPPY_TOKEN}&channel=CDJV1CXC2&count=1`)
const fileList = await fetch(`https://slack.com/api/files.list?token=${process.env.SLACK_BOT_TOKEN}&channel=CDJV1CXC2&count=1`)
.then(r => r.json())
.catch(err => res.status(400).send(err))

View file

@ -1,6 +1,3 @@
{
"env": {
"SLACK_BOT_TOKEN": "@slack-bot-token-production-8avf"
},
"github": { "silent": true }
}