mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Merge pull request #719 from Dokploy/443-implement-coolifyio-like-support-of-envs-and-railwayapp-envs-shared-project-service-env
feat: add shared enviroment variables
This commit is contained in:
@@ -26,6 +26,7 @@ export const projects = pgTable("project", {
|
||||
adminId: text("adminId")
|
||||
.notNull()
|
||||
.references(() => admins.adminId, { onDelete: "cascade" }),
|
||||
env: text("env").notNull().default(""),
|
||||
});
|
||||
|
||||
export const projectRelations = relations(projects, ({ many, one }) => ({
|
||||
@@ -65,10 +66,16 @@ export const apiRemoveProject = createSchema
|
||||
})
|
||||
.required();
|
||||
|
||||
export const apiUpdateProject = createSchema
|
||||
.pick({
|
||||
name: true,
|
||||
description: true,
|
||||
projectId: true,
|
||||
})
|
||||
.required();
|
||||
// export const apiUpdateProject = createSchema
|
||||
// .pick({
|
||||
// name: true,
|
||||
// description: true,
|
||||
// projectId: true,
|
||||
// env: true,
|
||||
// })
|
||||
// .required();
|
||||
|
||||
export const apiUpdateProject = createSchema.partial().extend({
|
||||
projectId: z.string().min(1),
|
||||
});
|
||||
// .omit({ serverId: true });
|
||||
|
||||
Reference in New Issue
Block a user