mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-10 16:35:26 +02:00
refactor: update DuplicateProject and AdvancedEnvironmentSelector components to utilize environmentId for improved context handling; enhance UI with project and environment selection features for better user experience
This commit is contained in:
@@ -36,14 +36,13 @@ export const createProject = async (
|
||||
}
|
||||
|
||||
// Automatically create a production environment
|
||||
try {
|
||||
await createProductionEnvironment(newProject.projectId);
|
||||
} catch (error) {
|
||||
console.error("Error creating production environment:", error);
|
||||
// Don't fail project creation if environment creation fails
|
||||
}
|
||||
const newEnvironment = await createProductionEnvironment(newProject.projectId);
|
||||
return {
|
||||
project: newProject,
|
||||
environment: newEnvironment,
|
||||
};
|
||||
|
||||
|
||||
return newProject;
|
||||
};
|
||||
|
||||
export const findProjectById = async (projectId: string) => {
|
||||
|
||||
Reference in New Issue
Block a user