Skip to content

Commit f389861

Browse files
authored
Merge pull request #63 from tempfiles-Team/61-기타-라우팅-경로에서-페이지-reload시-404-발생
temporary fix
2 parents 4148e81 + 4aa073c commit f389861

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
FROM nginx:latest
22

3-
COPY build /usr/share/nginx/html
3+
# Copy the nginx configuration file
4+
COPY nginx.conf /etc/nginx/nginx.conf
5+
6+
COPY build /etc/nginx/html
47

58
EXPOSE 80
69

nginx.conf

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
events {}
2+
3+
http {
4+
server {
5+
listen 80;
6+
location / {
7+
8+
if (!-e $request_filename) {
9+
rewrite ^(.*)$ /index.html break;
10+
}
11+
12+
}
13+
}
14+
}

0 commit comments

Comments
 (0)