Skip to content

Commit

Permalink
Adding custom domains
Browse files Browse the repository at this point in the history
  • Loading branch information
jayair committed Aug 31, 2023
1 parent d7af939 commit 8f83226
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions sst.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ export default {
stacks(app) {
app.stack(function Site({ stack }) {
const site = new StaticSite(stack, "site", {
customDomain:
stack.stage === "prod"
? {
domainName: "sst.dev",
domainAlias: "www.sst.dev",
}
: stack.stage.startsWith("branchv")
? {
hostedZone: "sst.dev",
domainName: `${stack.stage}.archives.sst.dev`,
}
: undefined,
errorPage: "404.html",
buildOutput: "_site",
buildCommand: "bundle exec jekyll build",
Expand Down

0 comments on commit 8f83226

Please sign in to comment.