mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 10:26:35 +00:00
Merge pull request #2949 from akhilmhdh/fix/broken-image
Fixed broke image
This commit is contained in:
@@ -21,6 +21,9 @@ export const registerServeUI = async (
|
|||||||
server.route({
|
server.route({
|
||||||
method: "GET",
|
method: "GET",
|
||||||
url: "/runtime-ui-env.js",
|
url: "/runtime-ui-env.js",
|
||||||
|
schema: {
|
||||||
|
hide: true
|
||||||
|
},
|
||||||
handler: (_req, res) => {
|
handler: (_req, res) => {
|
||||||
const appCfg = getConfig();
|
const appCfg = getConfig();
|
||||||
void res.type("application/javascript");
|
void res.type("application/javascript");
|
||||||
@@ -43,12 +46,19 @@ export const registerServeUI = async (
|
|||||||
wildcard: false
|
wildcard: false
|
||||||
});
|
});
|
||||||
|
|
||||||
server.get("/*", (request, reply) => {
|
server.route({
|
||||||
if (request.url.startsWith("/api")) {
|
method: "GET",
|
||||||
reply.callNotFound();
|
url: "/*",
|
||||||
return;
|
schema: {
|
||||||
|
hide: true
|
||||||
|
},
|
||||||
|
handler: (request, reply) => {
|
||||||
|
if (request.url.startsWith("/api")) {
|
||||||
|
reply.callNotFound();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
void reply.sendFile("index.html");
|
||||||
}
|
}
|
||||||
void reply.sendFile("index.html");
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
+1
-1
@@ -72,7 +72,7 @@ export const GitlabAuthorizePage = () => {
|
|||||||
>
|
>
|
||||||
<div className="flex flex-row items-center">
|
<div className="flex flex-row items-center">
|
||||||
<div className="flex items-center pb-0.5">
|
<div className="flex items-center pb-0.5">
|
||||||
<img src="/images/integrations/Gitlab.png" height={28} width={28} alt="Gitlab logo" />
|
<img src="/images/integrations/GitLab.png" height={28} width={28} alt="Gitlab logo" />
|
||||||
</div>
|
</div>
|
||||||
<span className="ml-2.5">GitLab Integration </span>
|
<span className="ml-2.5">GitLab Integration </span>
|
||||||
<a
|
<a
|
||||||
|
|||||||
+1
-1
@@ -197,7 +197,7 @@ export const GitlabConfigurePage = () => {
|
|||||||
>
|
>
|
||||||
<div className="flex flex-row items-center">
|
<div className="flex flex-row items-center">
|
||||||
<div className="flex items-center pb-0.5">
|
<div className="flex items-center pb-0.5">
|
||||||
<img src="/images/integrations/Gitlab.png" height={28} width={28} alt="Gitlab logo" />
|
<img src="/images/integrations/GitLab.png" height={28} width={28} alt="Gitlab logo" />
|
||||||
</div>
|
</div>
|
||||||
<span className="ml-2.5">GitLab Integration </span>
|
<span className="ml-2.5">GitLab Integration </span>
|
||||||
<a
|
<a
|
||||||
|
|||||||
Reference in New Issue
Block a user