Add nginx.config
This commit is contained in:
19
nginx.config
Normal file
19
nginx.config
Normal file
@@ -0,0 +1,19 @@
|
||||
events {}
|
||||
|
||||
http {
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
# Next.js static export creates page.html (e.g. contact.html) for routes.
|
||||
# We check $uri.html to allow clean URLs without the .html extension.
|
||||
try_files $uri $uri.html $uri/ /404.html;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user