We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 212f386 commit 1a05122Copy full SHA for 1a05122
packages/nextjs/scripts/update-builder-profiles.mjs
@@ -68,7 +68,7 @@ let routeContent = fs.readFileSync(apiRoutePath, 'utf8');
68
// Replace the BUILDER_PROFILES array content
69
routeContent = routeContent.replace(
70
/const BUILDER_PROFILES = \[([\s\S]*?)\];/,
71
- `const BUILDER_PROFILES = ${JSON.stringify(builderProfiles, null, 2)};`
+ `const BUILDER_PROFILES = [\n ${builderProfiles.map(profile => `"${profile}"`).join(",\n ")},\n];`
72
);
73
74
// Write the updated content back to the file
0 commit comments