Skip to content

Commit

Permalink
Refactor key name in config to match stage short form
Browse files Browse the repository at this point in the history
  • Loading branch information
Ru Chern Chong committed Jul 31, 2024
1 parent d2402e3 commit 41bec92
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sst.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@
const DOMAIN_NAME = "sgmotortrends.com";

const CORS = {
development: {
dev: {
allowOrigins: ["*"],
},
staging: {
allowOrigins: ["*"],
},
production: {
prod: {
allowOrigins: `https://${DOMAIN_NAME}`,
maxAge: "1 day",
},
};

const DOMAIN = {
development: `dev.api.${DOMAIN_NAME}`,
dev: `dev.api.${DOMAIN_NAME}`,
staging: `staging.api.${DOMAIN_NAME}`,
production: `api.${DOMAIN_NAME}`,
prod: `api.${DOMAIN_NAME}`,
} as const;

export default $config({
Expand Down

0 comments on commit 41bec92

Please sign in to comment.