Closed ironbyte closed 3 weeks ago
TL;DR: Skill issue.
Ok, somebody kindly helped me with fixing this issue on SST Discord server. Apparently, my Astro config missed a few mandatory lines. So I updated mine to look like this:
import { defineConfig } from "astro/config";
import aws from "astro-sst";
// https://astro.build/config
export default defineConfig({
output: "server",
adapter: aws(),
});
when you ran sst init
did it not print instructions to add that adapter?
@thdxr Hey,just checked now and yes it did print instructions after I ran sst init in a new Astro project. All's good now. Uh, They were dark for me to notice:
I keep getting this useless error message when trying to deploy my Astro app to AWS
Don't know if it is just me but I think this might be reproducible across machines.
Repo steps:
pnpm create astro
(then change directory into the newly Astro directory)sst init
and double check that your SST config's all good. Make sure it's set up for AWS.sst deploy
Expected:
My site should be deployed to AWS and that a generated Cloudfront URL should actually be working without fail. No random issues. More importantly, it should not return
null
. At the end of day, it should just work. Please.astro.config.mjs