@enfyra/create-app 0.1.33 → 0.1.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -73,10 +73,7 @@ async function setupProject(config, projectPath) {
73
73
  spinner.succeed(chalk.green('Package.json updated'));
74
74
 
75
75
 
76
- // Update Nuxt config with API URL
77
- spinner.start(chalk.blue('Configuring Nuxt with API URL...'));
78
- await updateNuxtConfig(projectPath, config);
79
- spinner.succeed(chalk.green('Nuxt configuration updated'));
76
+ // Skip modifying Nuxt config; API URL is managed via .env only
80
77
 
81
78
  // Generate environment file
82
79
  spinner.start(chalk.blue('Generating environment file...'));
@@ -171,30 +168,7 @@ async function cleanPackageManagerRestrictions(projectPath) {
171
168
  }
172
169
 
173
170
 
174
- async function updateNuxtConfig(projectPath, config) {
175
- const nuxtConfigPath = path.join(projectPath, 'nuxt.config.ts');
176
-
177
- if (fs.existsSync(nuxtConfigPath)) {
178
- let nuxtConfig = await fs.readFile(nuxtConfigPath, 'utf8');
179
-
180
- // Update enfyraSDK apiUrl
181
- if (nuxtConfig.includes('enfyraSDK:')) {
182
- nuxtConfig = nuxtConfig.replace(
183
- /enfyraSDK:\s*\{[^}]*\}/,
184
- `enfyraSDK: {\n apiUrl: "${config.apiUrl}"\n }`
185
- );
186
- } else {
187
- // Add enfyraSDK config
188
- nuxtConfig = nuxtConfig.replace(
189
- /}\);?\s*$/,
190
- ` enfyraSDK: {\n apiUrl: "${config.apiUrl}"\n },\n});\n`
191
- );
192
- }
193
-
194
-
195
- await fs.writeFile(nuxtConfigPath, nuxtConfig);
196
- }
197
- }
171
+ // No-op: Nuxt configuration is not altered by the scaffolder anymore
198
172
 
199
173
  async function installDependencies(projectPath, config) {
200
174
  const commands = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enfyra/create-app",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
4
4
  "description": "Create Enfyra frontend applications with ease",
5
5
  "main": "index.js",
6
6
  "bin": {