Skip to content

Commit 380ec01

Browse files
committed
allow cloning
1 parent c3cc44e commit 380ec01

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

examples/shirt-shop/components/banners/examples-banner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export function ExamplesBanner() {
6161
<Link
6262
data-variant="primary"
6363
className="relative inline-flex items-center justify-center cursor pointer no-underline px-3.5 rounded-md font-medium outline-0 select-none align-middle whitespace-nowrap transition-colors ease-in duration-200 border border-solid text-background bg-success border-success-dark hover:bg-success/90 shadow-[0_5px_10px_rgb(0,68,255,0.12)] h-10 leading-10 text-[15px]"
64-
href="https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fexamples%2Ftree%2Fmain%2Fsolutions%2Fflags-sdk&env=FLAGS_SECRET&envDescription=The%20FLAGS_SECRET%20will%20be%20used%20by%20the%20Flags%20Explorer%20to%20securely%20overwrite%20feature%20flags.%20Must%20be%2032%20random%20bytes%2C%20base64-encoded.%20Use%20the%20generated%20value%20or%20set%20your%20own.&envLink=https%3A%2F%2Fvercel.com%2Fdocs%2Fworkflow-collaboration%2Ffeature-flags%2Fsupporting-feature-flags%23flags_secret-environment-variable&project-name=flags-sdk-example&repository-name=flags-sdk-example"
64+
href="https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fflags%2Ftree%2Fmain%2Fexamples%2Fshirt-shop&env=FLAGS_SECRET&envDescription=The%20FLAGS_SECRET%20will%20be%20used%20by%20the%20Flags%20Explorer%20to%20securely%20overwrite%20feature%20flags.%20Must%20be%2032%20random%20bytes%2C%20base64-encoded.%20Use%20the%20generated%20value%20or%20set%20your%20own.&envLink=https%3A%2F%2Fvercel.com%2Fdocs%2Fworkflow-collaboration%2Ffeature-flags%2Fsupporting-feature-flags%23flags_secret-environment-variable&project-name=shirt-shop-example&repository-name=shirt-shop-example"
6565
target="_blank"
6666
rel="noreferrer"
6767
>

examples/shirt-shop/scripts/install.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import fs from 'fs/promises';
22
import { execSync } from 'child_process';
33

4-
function install(packageManager) {
5-
return execSync(`${packageManager} install`, { stdio: 'inherit' });
4+
function install(command) {
5+
return execSync(command, { stdio: 'inherit' });
66
}
77

88
/**
@@ -18,7 +18,7 @@ function install(packageManager) {
1818
async function main() {
1919
if (process.env.VERCEL_PROJECT_ID === 'prj_6Km3AvCCo0QgJSoEb3cFQwwB9x0Y') {
2020
// pnpm is necessary when installing for the vercel/flags monorepo
21-
install('pnpm');
21+
install('pnpm install');
2222
return;
2323
}
2424

@@ -38,7 +38,7 @@ async function main() {
3838
await fs.writeFile('./package.json', JSON.stringify(templatePackageJson));
3939

4040
// npm is necessary when installing for a template project
41-
install('npm');
41+
install('npm install --legacy-peer-deps');
4242
}
4343

4444
main();

0 commit comments

Comments
 (0)