Skip to main content

project_config

Creates, updates, deletes, gets or lists a project_config resource.

Overview

Nameproject_config
TypeResource
Idvercel.microfrontends.project_config

Fields

The following fields are returned by SELECT queries:

projectIds are added when the config is uploaded to s3 deployment assets.

NameDatatypeDescription
$schemastringSee https:​//openapi.vercel.sh/microfrontends.json.
applicationsobject
optionsobjectOptional configuration options for the microfrontend.
versionstringThe version of the microfrontends config schema. (1)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectproject_id_or_nameteam_id, slugGet the microfrontends config for a project by ID or name.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
project_id_or_namestringThe name or ID of the project
slugstringThe Team slug to perform the request on behalf of.
team_idstringThe Team identifier to perform the request on behalf of. (wire: teamId)

SELECT examples

Get the microfrontends config for a project by ID or name.

SELECT
$schema,
applications,
options,
version
FROM vercel.microfrontends.project_config
WHERE project_id_or_name = '{{ project_id_or_name }}' -- required
AND team_id = '{{ team_id }}'
AND slug = '{{ slug }}'
;