Skip to content

Commit

Permalink
feat: add ENABLE_EXPERIMENTAL_COREPACK env in shiro (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
matto49 committed Jun 2, 2024
1 parent 87128c6 commit 623a74b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/EnvVariableConfig/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { useState } from 'react';
import copy from 'copy-to-clipboard';

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

const handleCopy = () => {
if (format === 'yaml') {
Expand Down
5 changes: 5 additions & 0 deletions pages/themes/shiro/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,11 @@ import { EnvVariableConfig } from '@components/EnvVariableConfig'
key: 'CLERK_SECRET_KEY',
name: 'Clerk 页面的私钥',
},
{
key: 'ENABLE_EXPERIMENTAL_COREPACK',
name: 'vercel 部署时启用 corepack(取默认值即可)',
defaultVal: '1',
},
]}
/>

Expand Down

0 comments on commit 623a74b

Please sign in to comment.