Skip to content

Commit 9f7dc05

Browse files
committed
Added accesstoken / projectId / vercelTeamId
1 parent 63a221a commit 9f7dc05

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

docs/guides/examples/vercel-sync-env-vars.mdx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,21 @@ export default defineConfig({
2828
// Your other config settings...
2929
build: {
3030
// Add the syncVercelEnvVars build extension
31-
extensions: [syncVercelEnvVars()],
31+
extensions: [
32+
syncVercelEnvVars({
33+
// A personal access token created in your Vercel account settings
34+
// Used to authenticate API requests to Vercel
35+
// Generate at: https://vercel.com/account/tokens
36+
vercelAccessToken: process.env.VERCEL_ACCESS_TOKEN,
37+
// The unique identifier of your Vercel project
38+
// Found in Project Settings > General > Project ID
39+
projectId: process.env.VERCEL_PROJECT_ID,
40+
// Optional: The ID of your Vercel team
41+
// Only required for team projects
42+
// Found in Team Settings > General > Team ID
43+
vercelTeamId: process.env.VERCEL_TEAM_ID,
44+
}),
45+
],
3246
},
3347
});
3448
```

0 commit comments

Comments
 (0)