Skip to content

Commit

Permalink
feat: Add project inputs for displayName and region
Browse files Browse the repository at this point in the history
  • Loading branch information
dnys1 committed Sep 28, 2024
1 parent 13bd064 commit 7772bf9
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions packages/celest/lib/src/core/project.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,37 @@ class Project implements CloudWidget {
/// {@macro celest.core.project}
const Project({
required this.name,
this.displayName,
this.region,
});

/// The name of the project as its identified in your Celest backend.
final String name;

/// A friendly name for the project.
final String? displayName;

/// The region of the project, when deploying to Celest Cloud.
///
/// If not specified, the closest region will be chosen at the time of
/// deployment.
final Region? region;
}

/// The Celest cloud region to deploy to.
enum Region {
/// The North America region.
///
/// Includes the `us-east1`, `us-south1` and `us-west1` GCP regions.
northAmerica,

/// The Europe region.
///
/// Includes the `europe-west4` and `europe-west9` GCP regions.
europe,

/// The Asia-Pacific region.
///
/// Includes the `asia-south1` GCP region.
asiaPacific,
}

0 comments on commit 7772bf9

Please sign in to comment.