ion
ion copied to clipboard
Ion overwrites `astro.config.mjs`
- You have an existing Astro project
- You execute
sst init -
astro.config.mjsgets transformed into a broken state
astro.config.mjs (before sst init)
import { defineConfig } from "astro/config";
import preact from "@astrojs/preact";
// https://astro.build/config
export default defineConfig({
site: "https://example.com",
integrations: [preact()]
});
astro.config.mjs (after sst init)
import { defineConfig } from "astro/config";
import aws from "astro-sst";
export default defineConfig({
output: "server",
adapter: aws(),
});