Skip to content

Commit

Permalink
fix: works on dev
Browse files Browse the repository at this point in the history
  • Loading branch information
YoanRos committed Apr 10, 2024
1 parent 0d0f38d commit 0059d42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
7 changes: 0 additions & 7 deletions config.js

This file was deleted.

5 changes: 2 additions & 3 deletions pages/api/metabase.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { DataFrame } from "data-forge"
import { METABASE_ACCOUNT, METABASE_PASSWORD } from "../../config"
import fetch from "node-fetch"

export default async function metabase(req, res) {
Expand All @@ -11,8 +10,8 @@ export default async function metabase(req, res) {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
username: METABASE_ACCOUNT,
password: METABASE_PASSWORD,
username: process.env.METABASE_ACCOUNT,
password: process.env.METABASE_PASSWORD,
}),
}
)
Expand Down

0 comments on commit 0059d42

Please sign in to comment.