Skip to content

Commit 778b7be

Browse files
fix(setup): fixing configurations of the application to help get setup working (#415)
1 parent 4a26a20 commit 778b7be

File tree

8 files changed

+14
-15
lines changed

8 files changed

+14
-15
lines changed

dashboard-example/dsl/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ module.exports = {
8484
process.env.VERCEL_URL
8585
? "https://federation-dashboard-alpha.vercel.app"
8686
: "http://localhost:3000"
87-
}/api/update?token=${process.env.DASHBOARD_READ_WRITE}`,
87+
}/api/update?token=${process.env.DASHBOARD_WRITE_TOKEN}`,
8888
metadata: {
8989
baseUrl: process.env.VERCEL_URL
9090
? "https://" + process.env.VERCEL_URL

dashboard-example/home/webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ module.exports = {
7474
process.env.VERCEL_URL
7575
? "https://federation-dashboard-alpha.vercel.app"
7676
: "http://localhost:3000"
77-
}/api/get-remote?token=${process.env.DASHBOARD_READ_TOKEN}`,
77+
}/api/get-remote?token=${process.env.DASHBOARD_WRITE_TOKEN}`,
7878
}),
7979
search: clientVersion({
8080
currentHost: "home",
@@ -121,7 +121,7 @@ module.exports = {
121121
filename: "dashboard.json",
122122
dashboardURL: process.env.VERCEL_URL
123123
? "https://federation-dashboard-alpha.vercel.app/api/update?token=c754d13b-a294-462e-b0ef-71d2ad307426"
124-
: "http://localhost:3000/api/update?token=c754d13b-a294-462e-b0ef-71d2ad307426",
124+
: `http://localhost:3000/api/update?token=${process.env.DASHBOARD_WRITE_TOKEN}`,
125125
versionChangeWebhook: "http://cnn.com/",
126126
metadata: {
127127
clientUrl: "http://localhost:3000",

dashboard-example/search/webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ module.exports = {
7171
process.env.VERCEL_URL
7272
? "https://federation-dashboard-alpha.vercel.app"
7373
: "http://localhost:3000"
74-
}/api/get-remote?token=${process.env.DASHBOARD_WRITE_TOKEN}0`,
74+
}/api/get-remote?token=${process.env.DASHBOARD_READ_TOKEN}`,
7575
}),
7676
home: "home",
7777
utils: "utils",
@@ -93,7 +93,7 @@ module.exports = {
9393
process.env.VERCEL_URL
9494
? "https://federation-dashboard-alpha.vercel.app"
9595
: "http://localhost:3000"
96-
}/api/update?token=${process.env.DASHBOARD_WRITE_TOKEN}0`,
96+
}/api/update?token=${process.env.DASHBOARD_WRITE_TOKEN}`,
9797
metadata: {
9898
baseUrl: process.env.VERCEL_URL
9999
? "https://" + process.env.VERCEL_URL

dashboard-fe/components/with-auth.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { Component, FC } from "react";
1+
import React, { FC } from "react";
22
import { publicConfig } from "../src/config";
33
import { useUser } from "@auth0/nextjs-auth0";
44
import { UserProvider } from "@auth0/nextjs-auth0";

dashboard-fe/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"micro": "9.3.4",
7171
"ml-matrix": "6.5.0",
7272
"mobx": "5.15.4",
73-
"mobx-react": "6.2.2",
73+
"mobx-react": "6.3.1",
7474
"moment": "2.29.1",
7575
"mongodb": "3.6.2",
7676
"native-url": "0.3.4",

dashboard-fe/pages/api/graphql.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ async function handler(req: any, res: any) {
642642
// session = auth0.getSession(req, res);
643643
// }
644644
let user = await checkForTokens(req.query.token || "noToken");
645-
console.log(user);
645+
console.log("user: " + user);
646646
// if (
647647
// !tokens ||
648648
// req?.headers?.Authorization?.find((token) => tokens.includes(token))

dashboard-fe/pages/settings.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import gql from "graphql-tag";
1919
import { useQuery, useMutation } from "@apollo/react-hooks";
2020
import { v4 as uuidv4 } from "uuid";
2121
import Layout from "../components/Layout";
22-
import store from "../src/store";
2322

2423
const GET_SETTINGS = gql`
2524
{

yarn.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10846,17 +10846,17 @@ [email protected]:
1084610846
dependencies:
1084710847
ml-array-rescale "^1.3.1"
1084810848

10849-
mobx-react-lite@2:
10849+
mobx-react-lite@^2.2.0:
1085010850
version "2.2.2"
1085110851
resolved "https://registry.yarnpkg.com/mobx-react-lite/-/mobx-react-lite-2.2.2.tgz#87c217dc72b4e47b22493daf155daf3759f868a6"
1085210852
integrity sha512-2SlXALHIkyUPDsV4VTKVR9DW7K3Ksh1aaIv3NrNJygTbhXe2A9GrcKHZ2ovIiOp/BXilOcTYemfHHZubP431dg==
1085310853

10854-
mobx-react@6.2.2:
10855-
version "6.2.2"
10856-
resolved "https://registry.yarnpkg.com/mobx-react/-/mobx-react-6.2.2.tgz#45e8e7c4894cac8399bba0a91060d7cfb8ea084b"
10857-
integrity sha512-Us6V4ng/iKIRJ8pWxdbdysC6bnS53ZKLKlVGBqzHx6J+gYPYbOotWvhHZnzh/W5mhpYXxlXif4kL2cxoWJOplQ==
10854+
mobx-react@6.3.1:
10855+
version "6.3.1"
10856+
resolved "https://registry.yarnpkg.com/mobx-react/-/mobx-react-6.3.1.tgz#204f9756e42e19d91cb6598837063b7e7de87c52"
10857+
integrity sha512-IOxdJGnRSNSJrL2uGpWO5w9JH5q5HoxEqwOF4gye1gmZYdjoYkkMzSGMDnRCUpN/BNzZcFoMdHXrjvkwO7KgaQ==
1085810858
dependencies:
10859-
mobx-react-lite "2"
10859+
mobx-react-lite "^2.2.0"
1086010860

1086110861
1086210862
version "5.15.4"

0 commit comments

Comments
 (0)