Last active
June 6, 2024 02:45
-
-
Save ManotLuijiu/c715571d9bf3bab58bad4be314771599 to your computer and use it in GitHub Desktop.
Configuration for new sst version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference path="./.sst/platform/config.d.ts" /> | |
export default $config({ | |
app(input) { | |
return { | |
name: "project-name", | |
removal: input?.stage === "production" ? "retain" : "remove", | |
home: "aws", | |
providers: { | |
aws: { | |
region: "ap-southeast-1", | |
}, | |
}, | |
}; | |
}, | |
async run() { | |
new sst.aws.Nextjs("ProjectName", { | |
domain: { | |
name: $app.stage === "production" ? "domain.com" : `${$app.stage}.domain.com`, | |
redirects: $app.stage === "production" ? ["www.domain.com"] : undefined, | |
}, | |
}); | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Error: Unexpected method 'appcast' called on Cask gfortran.
Follow the instructions here:
https://github.com/Homebrew/homebrew-cask#reporting-bugs
rm -rfi $(brew --caskroom)/gfortran ─╯
examine files in directory /usr/local/Caskroom/gfortran?