Skip to content

Commit

Permalink
Add Cloudflare proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchernchong committed Sep 7, 2024
1 parent c145e71 commit 1943939
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion sst.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ export default $config({
new sst.aws.Nextjs("Site", {
domain: {
...DOMAIN[$app.stage],
dns: sst.cloudflare.dns(),
dns: sst.cloudflare.dns({
transform: {
record: {
proxied: true,
},
},
}),
},
environment: {
SG_CARS_TRENDS_API_TOKEN: process.env.SG_CARS_TRENDS_API_TOKEN!,
Expand Down

0 comments on commit 1943939

Please sign in to comment.