Skip to content

Commit

Permalink
Prepare invalidation for API
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchernchong committed Oct 16, 2024
1 parent 2e5971e commit 2ff66d1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sst.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ const DOMAIN = {
prod: { name: `api.${DOMAIN_NAME}` },
};

// const INVALIDATION = {
// dev: false,
// staging: true,
// prod: true,
// };

export default $config({
app(input) {
return {
Expand Down Expand Up @@ -61,6 +67,8 @@ export default $config({
...DOMAIN[$app.stage],
dns: sst.cloudflare.dns(),
},
// TODO: Will enable later
// invalidation: INVALIDATION[$app.stage],
routes: {
"/*": api.url,
},
Expand Down

0 comments on commit 2ff66d1

Please sign in to comment.