File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ COPY package.json ./
44COPY yarn.lock ./
55COPY tsconfig.json ./
66COPY ./src ./src
7- COPY ./static ./static
87COPY ./@types ./@types
98RUN yarn install && yarn build
109
Original file line number Diff line number Diff line change @@ -49,3 +49,23 @@ resource "aws_alb_listener" "frontend_alb_listener_https" {
4949
5050 tags = local. default_tags
5151}
52+
53+ resource "aws_alb_listener_rule" "frontend_alb_listener_https_robots" {
54+ listener_arn = aws_alb_listener. frontend_alb_listener_https . arn
55+ priority = 10
56+
57+ action {
58+ type = " fixed-response"
59+ fixed_response {
60+ content_type = " text/plain"
61+ message_body = file (" static/robots.txt" )
62+ status_code = 200
63+ }
64+ }
65+
66+ condition {
67+ path_pattern {
68+ values = [" /robots.txt" ]
69+ }
70+ }
71+ }
File renamed without changes.
You can’t perform that action at this time.
0 commit comments