Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Microfrontends #273

Merged

Conversation

kitfoster
Copy link
Collaborator

@kitfoster kitfoster commented Feb 20, 2025

Add vercel_microfrontend_group and vercel_microfrontend_group_membership. Microfrontends is currently in private beta.

data "vercel_project" "parent-mfe-project" {
  name = "my parent project"
}

data "vercel_project" "child-mfe-project" {
  name = "my child project"
}

resource "vercel_microfrontend_group" "example-mfe-group" {
  name        = "my mfe"
  default_app = {
    project_id = vercel_project.parent-mfe-project.id
  }
}

resource "vercel_microfrontend_group_membership" "child-mfe-project-mfe-membership" {
  project_id             = vercel_project.child-mfe-project.id
  microfrontend_group_id = vercel_microfrontend_group.example-mfe-group.id
}

@kitfoster kitfoster marked this pull request as ready for review February 20, 2025 11:55
Copy link
Member

@mknichel mknichel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kitfoster There was a discussion on https://vercel.slack.com/archives/C088GDPK35Y/p1738867552690349?thread_ts=1738866684.654279&cid=C088GDPK35Y about whether we want to have projects be listed as part of the microfrontends group, or separate them so the project resource specifies the microfrontends group ID that it's a part of. Would you mind taking a look and sharing your thoughts?

@kitfoster kitfoster enabled auto-merge (squash) March 3, 2025 18:52
@kitfoster kitfoster merged commit cbd5fc7 into main Mar 3, 2025
6 checks passed
@kitfoster kitfoster deleted the kit/fdrtn-720-terraform-add-terraform-support-for-configuring branch March 3, 2025 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants