Merge pull request #466 from Dokploy/canary

v0.8.3
This commit is contained in:
Mauricio Siu
2024-09-19 16:01:27 -06:00
committed by GitHub
4 changed files with 9 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "dokploy",
"version": "v0.8.2",
"version": "v0.8.3",
"private": true,
"license": "Apache-2.0",
"type": "module",

View File

@@ -27,7 +27,7 @@ export const domainRouter = createTRPCRouter({
.input(apiCreateDomain)
.mutation(async ({ input }) => {
try {
await createDomain(input);
return await createDomain(input);
} catch (error) {
throw new TRPCError({
code: "BAD_REQUEST",

View File

@@ -26,7 +26,7 @@ export const createDomain = async (input: typeof apiCreateDomain._type) => {
if (!domain) {
throw new TRPCError({
code: "BAD_REQUEST",
message: "Error to create the domain",
message: "Error creating domain",
});
}
@@ -34,6 +34,8 @@ export const createDomain = async (input: typeof apiCreateDomain._type) => {
const application = await findApplicationById(domain.applicationId);
await manageDomain(application, domain);
}
return domain;
});
};

View File

@@ -53,6 +53,10 @@ Compose Type: ${composeType} ✅`;
},
{
cwd: projectPath,
env: {
NODE_ENV: process.env.NODE_ENV,
PATH: process.env.PATH,
},
},
);