Skip to content

Commit 59bfe78

Browse files
update endpoints
1 parent 5a248de commit 59bfe78

File tree

12 files changed

+4506
-32
lines changed

12 files changed

+4506
-32
lines changed

dashboard-example/dsl/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dashboard/dsl",
3-
"version": "0.4.2",
3+
"version": "0.4.3",
44
"private": true,
55
"devDependencies": {
66
"@babel/core": "7.15.5",

dashboard-example/dsl/webpack.config.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,13 @@ module.exports = {
7676
new HtmlWebpackPlugin({
7777
template: "./public/index.html",
7878
}),
79-
process.env.VERCEL_GIT_COMMIT_REF === "master" || !process.env.VERCEL_URL
80-
? new DashboardPlugin({
79+
new DashboardPlugin({
8180
publishVersion: require("./package.json").version,
8281
filename: "dashboard.json",
8382
dashboardURL: `${
8483
process.env.VERCEL_URL
8584
? "https://federation-dashboard-alpha.vercel.app"
86-
: "http://localhost:3000"
85+
: "http://localhost:3333"
8786
}/api/update?token=${process.env.DASHBOARD_WRITE_TOKEN}`,
8887
metadata: {
8988
baseUrl: process.env.VERCEL_URL
@@ -97,6 +96,5 @@ module.exports = {
9796
: "http://localhost:3002/remoteEntry.js",
9897
},
9998
})
100-
: () => {},
10199
],
102100
};

dashboard-example/home/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dashboard/home",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"private": true,
55
"devDependencies": {
66
"@babel/core": "7.15.5",

dashboard-example/home/webpack.config.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ module.exports = {
7373
dashboardURL: `${
7474
process.env.VERCEL_URL
7575
? "https://federation-dashboard-alpha.vercel.app"
76-
: "http://localhost:3000"
76+
: "http://localhost:3333"
7777
}/api/get-remote?token=${process.env.DASHBOARD_READ_TOKEN}`,
7878
}),
7979
search: clientVersion({
@@ -82,7 +82,7 @@ module.exports = {
8282
dashboardURL: `${
8383
process.env.VERCEL_URL
8484
? "https://federation-dashboard-alpha.vercel.app"
85-
: "http://localhost:3000"
85+
: "http://localhost:3333"
8686
}/api/get-remote?token=${process.env.DASHBOARD_READ_TOKEN}`,
8787
}),
8888
nav: clientVersion({
@@ -91,7 +91,7 @@ module.exports = {
9191
dashboardURL: `${
9292
process.env.VERCEL_URL
9393
? "https://federation-dashboard-alpha.vercel.app"
94-
: "http://localhost:3000"
94+
: "http://localhost:3333"
9595
}/api/get-remote?token=${process.env.DASHBOARD_READ_TOKEN}`,
9696
}),
9797
utils: clientVersion({
@@ -100,7 +100,7 @@ module.exports = {
100100
dashboardURL: `${
101101
process.env.VERCEL_URL
102102
? "https://federation-dashboard-alpha.vercel.app"
103-
: "http://localhost:3000"
103+
: "http://localhost:3333"
104104
}/api/get-remote?token=${process.env.DASHBOARD_READ_TOKEN}`,
105105
}),
106106
},
@@ -115,16 +115,16 @@ module.exports = {
115115
template: "./public/index.html",
116116
excludeChunks: ["remoteEntry"],
117117
}),
118-
process.env.VERCEL_GIT_COMMIT_REF === "master" || !process.env.VERCEL_URL
119-
? new DashboardPlugin({
118+
119+
new DashboardPlugin({
120120
publishVersion: require("./package.json").version,
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=${process.env.DASHBOARD_WRITE_TOKEN}`,
124+
: `http://localhost:3333/api/update?token=${process.env.DASHBOARD_WRITE_TOKEN}`,
125125
versionChangeWebhook: "http://cnn.com/",
126126
metadata: {
127-
clientUrl: "http://localhost:3000",
127+
clientUrl: "http://localhost:3333",
128128
baseUrl: process.env.VERCEL_URL
129129
? "https://" + process.env.VERCEL_URL
130130
: "http://localhost:3001",
@@ -136,6 +136,5 @@ module.exports = {
136136
: "http://localhost:3001/remoteEntry.js",
137137
},
138138
})
139-
: () => {},
140139
],
141140
};

dashboard-example/nav/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dashboard/nav",
3-
"version": "6.1.1",
3+
"version": "6.1.2",
44
"private": true,
55
"devDependencies": {
66
"@babel/core": "7.15.5",

dashboard-example/nav/webpack.config.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ module.exports = {
6969
dashboardURL: `${
7070
process.env.VERCEL_URL
7171
? "https://federation-dashboard-alpha.vercel.app"
72-
: "http://localhost:3000"
72+
: "http://localhost:3333"
7373
}/api/get-remote?token=${process.env.DASHBOARD_READ_TOKEN}`,
7474
}),
7575
search: "search",
@@ -85,13 +85,12 @@ module.exports = {
8585
new HtmlWebpackPlugin({
8686
template: "./public/index.html",
8787
}),
88-
process.env.VERCEL_GIT_COMMIT_REF === "master" || !process.env.VERCEL_URL
89-
? new DashboardPlugin({
88+
new DashboardPlugin({
9089
publishVersion: require("./package.json").version,
9190
filename: "dashboard.json",
9291
dashboardURL: process.env.VERCEL_URL
9392
? `https://federation-dashboard-alpha.vercel.app/api/update?token=${process.env.DASHBOARD_WRITE_TOKEN}`
94-
: `http://localhost:3000/api/update?token=${process.env.DASHBOARD_WRITE_TOKEN}`,
93+
: `http://localhost:3333/api/update?token=${process.env.DASHBOARD_WRITE_TOKEN}`,
9594
versionChangeWebhook: "http://cnn.com/",
9695
metadata: {
9796
baseUrl: process.env.VERCEL_URL
@@ -105,6 +104,5 @@ module.exports = {
105104
: "http://localhost:3003/remoteEntry.js",
106105
},
107106
})
108-
: () => {},
109107
],
110108
};

dashboard-example/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
"start": "concurrently \"cd dsl; yarn start\" \"cd home; yarn start\" \"cd nav; yarn start\" \"cd search; yarn start\" \"cd utils; yarn start\"",
55
"build": "concurrently \"cd dsl; yarn build\" \"cd home; yarn build\" \"cd nav; yarn build\" \"cd search; yarn build\" \"cd utils; yarn build\"",
66
"serve": "concurrently \"cd dsl; yarn serve\" \"cd home; yarn serve\" \"cd nav; yarn serve\" \"cd search; yarn serve\" \"cd utils; yarn serve\"",
7-
"clean": "lerna run --scope @dashboard/* --parallel clean",
8-
"postinstall": "yarn link @module-federation/dashboard-plugin"
7+
"clean": "lerna run --scope @dashboard/* --parallel clean"
98
},
109
"workspaces": {
1110
"packages": [
@@ -17,7 +16,7 @@
1716
]
1817
},
1918
"resolutions": {
20-
"@module-federation/dashboard-plugin": "^2.3.0"
19+
"@module-federation/dashboard-plugin": "file:../dashboard-plugin"
2120
},
2221
"devDependencies": {
2322
"concurrently": "6.2.1"

dashboard-example/search/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dashboard/search",
3-
"version": "0.0.0",
3+
"version": "0.0.1",
44
"private": true,
55
"devDependencies": {
66
"@babel/core": "7.15.5",

dashboard-example/search/webpack.config.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ module.exports = {
7070
dashboardURL: `${
7171
process.env.VERCEL_URL
7272
? "https://federation-dashboard-alpha.vercel.app"
73-
: "http://localhost:3000"
73+
: "http://localhost:3333"
7474
}/api/get-remote?token=${process.env.DASHBOARD_READ_TOKEN}`,
7575
}),
7676
home: "home",
@@ -85,14 +85,13 @@ module.exports = {
8585
new HtmlWebpackPlugin({
8686
template: "./public/index.html",
8787
}),
88-
process.env.VERCEL_GIT_COMMIT_REF === "master" || !process.env.VERCEL_URL
89-
? new DashboardPlugin({
88+
new DashboardPlugin({
9089
publishVersion: require("./package.json").version,
9190
filename: "dashboard.json",
9291
dashboardURL: `${
9392
process.env.VERCEL_URL
9493
? "https://federation-dashboard-alpha.vercel.app"
95-
: "http://localhost:3000"
94+
: "http://localhost:3333"
9695
}/api/update?token=${process.env.DASHBOARD_WRITE_TOKEN}`,
9796
metadata: {
9897
baseUrl: process.env.VERCEL_URL
@@ -106,6 +105,5 @@ module.exports = {
106105
: "http://localhost:3004/remoteEntry.js",
107106
},
108107
})
109-
: () => {},
110108
],
111109
};

dashboard-example/utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dashboard/utils",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"private": true,
55
"devDependencies": {
66
"@babel/core": "7.15.5",

0 commit comments

Comments
 (0)