ion icon indicating copy to clipboard operation
ion copied to clipboard

Ion overwrites `astro.config.mjs`

Open garysassano opened this issue 1 year ago • 1 comments

  1. You have an existing Astro project
  2. You execute sst init
  3. astro.config.mjs gets 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(),
});

image

garysassano avatar May 18 '24 13:05 garysassano