Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ENABLE_EXPERIMENTAL_COREPACK env in shiro #73

Merged
merged 1 commit into from
Jun 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading