Skip to content

Commit e3dcdf6

Browse files
feat(vercel): refactor Storage and Project types for improved structure and functionality
1 parent 67ab76d commit e3dcdf6

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

13284
/**
13385
* 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)