Updated vercel synv env vars example (#1911)

* Added accesstoken / projectId / vercelTeamId

* Moved v4 upgrade up
This commit is contained in:
Dan
2025-04-11 13:54:32 +01:00
committed by GitHub
parent 31b06ba5e1
commit e7afc5cfee
2 changed files with 28 additions and 43 deletions
+15 -1
View File
@@ -28,7 +28,21 @@ export default defineConfig({
// Your other config settings...
build: {
// Add the syncVercelEnvVars build extension
extensions: [syncVercelEnvVars()],
extensions: [
syncVercelEnvVars({
// A personal access token created in your Vercel account settings
// Used to authenticate API requests to Vercel
// Generate at: https://vercel.com/account/tokens
vercelAccessToken: process.env.VERCEL_ACCESS_TOKEN,
// The unique identifier of your Vercel project
// Found in Project Settings > General > Project ID
projectId: process.env.VERCEL_PROJECT_ID,
// Optional: The ID of your Vercel team
// Only required for team projects
// Found in Team Settings > General > Team ID
vercelTeamId: process.env.VERCEL_TEAM_ID,
}),
],
},
});
```