Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup Dashboard on custom endpoint #664

Merged
merged 7 commits into from
Feb 16, 2023
Merged

Conversation

leorossi
Copy link
Contributor

@leorossi leorossi commented Feb 8, 2023

@mcollina this may be a breaking change in configuration because I renamed dashboard.rootPath to dashboard.path and that would be a string.

@Eomm I used the { path: ... } pattern to be consistent with the plugins configuration

Let me know what you think

Fixes #657

Signed-off-by: Leonardo Rossi leonardo.rossi@gmail.com

Signed-off-by: Leonardo Rossi <leonardo.rossi@gmail.com>
@leorossi leorossi force-pushed the feat/dashboard-custom-endpoint branch from 810255c to 6fcb7e0 Compare February 8, 2023 16:27
})
// app.get(`${dashboardPath}/*`, { hide: true }, function (req, reply) {
// return reply.sendFile('index.html')
// })
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this commented out?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fastify-static gives me the error of #560 , I'm looking how to solve this

@mcollina
Copy link
Member

mcollina commented Feb 8, 2023

I think this also solves #560

@mcollina
Copy link
Member

@leorossi could you fix linting?

@mcollina mcollina mentioned this pull request Feb 15, 2023
Signed-off-by: Leonardo Rossi <leonardo.rossi@gmail.com>
Signed-off-by: Leonardo Rossi <leonardo.rossi@gmail.com>
@leorossi
Copy link
Contributor Author

Ended up a bit more complicated, because the react app relied on the /dashboard endpoint.

I added a script that fixes the .env dashboard file to put it the same value found in config file, and that is executed before vite in dashboard:build script.

Signed-off-by: Leonardo Rossi <leonardo.rossi@gmail.com>
Signed-off-by: Leonardo Rossi <leonardo.rossi@gmail.com>
Signed-off-by: Leonardo Rossi <leonardo.rossi@gmail.com>
Signed-off-by: Leonardo Rossi <leonardo.rossi@gmail.com>
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcollina mcollina merged commit a4dae2f into main Feb 16, 2023
@mcollina mcollina deleted the feat/dashboard-custom-endpoint branch September 4, 2023 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature request: custom Dashboard endpoint
2 participants