Skip to content

Commit 8ab536d

Browse files
committed
구글 서치콘솔에서 사이트맵을 찾지 못하는 문제 수정
1 parent be26c33 commit 8ab536d

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

infra/web/default.conf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
server {
22
server_name loa-work.info;
33

4+
location = /sitemap.xml {
5+
root /app/public;
6+
add_header Content-Type application/xml;
7+
expires 1d;
8+
}
9+
10+
location = /robots.txt {
11+
root /app/public;
12+
add_header Content-Type text/plain;
13+
expires 1d;
14+
}
15+
416
location / {
517
proxy_pass http://localhost:3000;
618
proxy_http_version 1.1;

src/backend/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ COPY --from=build /app/node_modules ./node_modules
1212
COPY --from=build /app/package.json .
1313
COPY --from=build /app/prisma ./prisma
1414
COPY frontend-build ./dist/frontend
15+
COPY ../frontend/public ./public
1516
EXPOSE 3000
1617
CMD ["yarn", "start:prod"]

0 commit comments

Comments
 (0)