mirror of
https://github.com/System-End/site.git
synced 2026-04-19 15:18:18 +00:00
Switch to Vercel's new Environment Variables system
This commit is contained in:
parent
cf9f5bffd2
commit
2c36f75dd9
2 changed files with 1 additions and 4 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
{
|
||||
"env": {
|
||||
"SLACK_BOT_TOKEN": "@slack-bot-token-production-8avf"
|
||||
},
|
||||
"github": { "silent": true }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue