Skip to content

Commit

Permalink
chore: move server ahead of s3 group
Browse files Browse the repository at this point in the history
  • Loading branch information
khuezy committed Dec 9, 2022
1 parent d3cee98 commit 187645b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NextjsDistribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,8 @@ export class NextjsDistribution extends Construct {
// - if 403, fall back to lambda handler (mostly for /)
// - if 404, fall back to lambda handler
const fallbackOriginGroup = new origins.OriginGroup({
primaryOrigin: s3Origin,
fallbackOrigin: serverFunctionOrigin,
primaryOrigin: serverFunctionOrigin,
fallbackOrigin: s3Origin,
fallbackStatusCodes: [403, 404],
});

Expand Down

0 comments on commit 187645b

Please sign in to comment.