MCPcopy
hub / github.com/vercel/next-forge / setupEnvironmentVariables

Function setupEnvironmentVariables

scripts/initialize.ts:73–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71};
72
73const setupEnvironmentVariables = async () => {
74 const files = [
75 { source: join("apps", "api"), target: ".env.local" },
76 { source: join("apps", "app"), target: ".env.local" },
77 { source: join("apps", "web"), target: ".env.local" },
78 { source: join("packages", "cms"), target: ".env.local" },
79 { source: join("packages", "database"), target: ".env" },
80 { source: join("packages", "internationalization"), target: ".env.local" },
81 ];
82
83 for (const { source, target } of files) {
84 await copyFile(join(source, ".env.example"), join(source, target));
85 }
86};
87
88const setupOrm = (packageManager: PackageManagerName) => {
89 const filterCommand = packageManager === "npm" ? "--workspace" : "--filter";

Callers 1

initializeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected