@smi-digital/create-smi-app 2.4.2 → 2.4.3
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.
- package/dist/index.js +8 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -599,11 +599,15 @@ async function createIntegrations(options, projectRoot, templatesDir) {
|
|
|
599
599
|
await applySequentially(0);
|
|
600
600
|
await runStep("Configuring Astro SSR Adapter", async () => {
|
|
601
601
|
try {
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
602
|
+
const frontendDir = join5(projectRoot, "frontend");
|
|
603
|
+
await runCommandQuiet("npx", ["astro", "add", "node", "-y"], frontendDir);
|
|
604
|
+
const astroConfigPath = join5(frontendDir, "astro.config.mjs");
|
|
605
|
+
let astroConfig = await readFile4(astroConfigPath, "utf8");
|
|
606
|
+
astroConfig = astroConfig.replace(
|
|
607
|
+
"export default defineConfig({",
|
|
608
|
+
"export default defineConfig({\n output: 'server',"
|
|
606
609
|
);
|
|
610
|
+
await writeFile3(astroConfigPath, astroConfig);
|
|
607
611
|
} catch {
|
|
608
612
|
}
|
|
609
613
|
});
|