Skip to content

Commit dc13514

Browse files
feat(vercel): refactor Storage and Project types for improved structure and functionality
1 parent 31c484f commit dc13514

File tree

5 files changed

+327
-254
lines changed

5 files changed

+327
-254
lines changed

alchemy/src/vercel/project.ts

Lines changed: 3 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import { Resource } from "../resource.ts";
33
import { isSecret, type Secret } from "../secret.ts";
44
import { logger } from "../util/logger.ts";
55
import { createVercelApi, type VercelApi } from "./api.ts";
6-
7-
type TargetEnvironment = "production" | "preview" | "development";
6+
import type { VercelEnvironments, VercelFrameworks } from "./vercel.types.ts";
87

98
export type EnvironmentVariable = {
109
/**
@@ -15,7 +14,7 @@ export type EnvironmentVariable = {
1514
/**
1615
* The target environment
1716
*/
18-
target: TargetEnvironment[];
17+
target: VercelEnvironments;
1918

2019
/**
2120
* The Git branch
@@ -82,54 +81,7 @@ export interface ProjectProps {
8281
/**
8382
* The framework that is being used for this project. When `null` is used no framework is selected
8483
*/
85-
framework?:
86-
| "blitzjs"
87-
| "nextjs"
88-
| "gatsby"
89-
| "remix"
90-
| "react-router"
91-
| "astro"
92-
| "hexo"
93-
| "eleventy"
94-
| "docusaurus-2"
95-
| "docusaurus"
96-
| "preact"
97-
| "solidstart-1"
98-
| "solidstart"
99-
| "dojo"
100-
| "ember"
101-
| "vue"
102-
| "scully"
103-
| "ionic-angular"
104-
| "angular"
105-
| "polymer"
106-
| "svelte"
107-
| "sveltekit"
108-
| "sveltekit-1"
109-
| "ionic-react"
110-
| "create-react-app"
111-
| "gridsome"
112-
| "umijs"
113-
| "sapper"
114-
| "saber"
115-
| "stencil"
116-
| "nuxtjs"
117-
| "redwoodjs"
118-
| "hugo"
119-
| "jekyll"
120-
| "brunch"
121-
| "middleman"
122-
| "zola"
123-
| "hydrogen"
124-
| "vite"
125-
| "vitepress"
126-
| "vuepress"
127-
| "parcel"
128-
| "fasthtml"
129-
| "sanity-v3"
130-
| "sanity"
131-
| "storybook"
132-
| (string & {});
84+
framework?: VercelFrameworks;
13385

13486
/**
13587
* The Git Repository that will be connected to the project. When this is defined, any pushes to the specified connected Git Repository will be automatically deployed

0 commit comments

Comments
 (0)