Skip to content
This repository was archived by the owner on Nov 2, 2024. It is now read-only.

Commit 623a74b

Browse files
authored
feat: add ENABLE_EXPERIMENTAL_COREPACK env in shiro (#73)
1 parent 87128c6 commit 623a74b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

components/EnvVariableConfig/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { useState } from 'react';
22
import copy from 'copy-to-clipboard';
33

4-
export function EnvVariableConfig({ variableNames, format }: { variableNames: { key: string; name: string }[]; format?: "yaml" | "env" }) {
5-
const [values, setValues] = useState(Array(variableNames.length).fill(''));
4+
export function EnvVariableConfig({ variableNames, format }: { variableNames: { key: string; name: string;defaultVal?: string }[]; format?: "yaml" | "env" }) {
5+
const [values, setValues] = useState(variableNames.map((name) => name.defaultVal || ''));
66

77
const handleCopy = () => {
88
if (format === 'yaml') {

pages/themes/shiro/index.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,11 @@ import { EnvVariableConfig } from '@components/EnvVariableConfig'
272272
key: 'CLERK_SECRET_KEY',
273273
name: 'Clerk 页面的私钥',
274274
},
275+
{
276+
key: 'ENABLE_EXPERIMENTAL_COREPACK',
277+
name: 'vercel 部署时启用 corepack(取默认值即可)',
278+
defaultVal: '1',
279+
},
275280
]}
276281
/>
277282

0 commit comments

Comments
 (0)