Skip to content

Commit 954e3f3

Browse files
committed
feat: drop legacy CLI templates
Here dropped vanilla and legacy vercel templates. Replaced vanilla with docker in publish dialog.
1 parent 13a4660 commit 954e3f3

File tree

2 files changed

+9
-16
lines changed

2 files changed

+9
-16
lines changed

apps/builder/app/builder/features/topbar/publish.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -643,25 +643,28 @@ const Content = (props: {
643643

644644
const deployTargets = {
645645
vanilla: {
646+
label: "Docker",
647+
docs: "https://reactrouter.com/",
646648
command: `
647-
npm install
648-
npm run dev
649+
docker build -t my-image .
650+
docker run my-image
649651
`,
650-
docs: "https://remix.run/",
651652
ssgTemplates: ["ssg"],
652653
},
653654
vercel: {
654-
command: "npx vercel@latest",
655+
label: "Vercel",
655656
docs: "https://vercel.com/docs/cli",
657+
command: "npx vercel@latest",
656658
ssgTemplates: ["ssg-vercel"],
657659
},
658660
netlify: {
661+
label: "Netlify",
662+
docs: "https://docs.netlify.com/cli/get-started/",
659663
command: `
660664
npx netlify-cli@latest login
661665
npx netlify-cli sites:create
662666
npx netlify-cli build
663667
npx netlify-cli deploy`,
664-
docs: "https://docs.netlify.com/cli/get-started/",
665668
ssgTemplates: ["ssg-netlify"],
666669
},
667670
} as const;
@@ -803,7 +806,7 @@ const ExportContent = (props: { projectId: Project["id"] }) => {
803806
target="_blank"
804807
rel="noreferrer"
805808
>
806-
{humanizeString(deployTarget)}
809+
{humanizeString(deployTargets[deployTarget].label)}
807810
</Link>{" "}
808811
</Text>
809812
</Grid>

packages/cli/src/config.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,6 @@ export const jsonToGlobalConfig = (json: unknown) => {
5353
export type GlobalConfig = z.infer<typeof zGlobalConfig>;
5454

5555
export const PROJECT_TEMPLATES = [
56-
{
57-
value: "vanilla" as const,
58-
label: "Vanilla",
59-
expand: ["defaults"],
60-
},
6156
{
6257
value: "docker" as const,
6358
label: "Docker",
@@ -68,11 +63,6 @@ export const PROJECT_TEMPLATES = [
6863
label: "Vercel",
6964
expand: ["react-router", "react-router-vercel"],
7065
},
71-
{
72-
value: "vercel-legacy" as const,
73-
label: "Vercel (legacy)",
74-
expand: ["defaults", "vercel"],
75-
},
7666
{
7767
value: "netlify" as const,
7868
label: "Netlify",

0 commit comments

Comments
 (0)