This commit is contained in:
parent
126a61fc28
commit
854c5d5bae
|
@ -1,2 +1,5 @@
|
||||||
FROM nginx
|
FROM nginx
|
||||||
COPY ./out /usr/share/nginx/html
|
COPY ./out /usr/share/nginx/html
|
||||||
|
|
||||||
|
COPY staging-nginx.conf /etc/nginx/conf.d
|
||||||
|
RUN rm /etc/nginx/conf.d/default.conf
|
|
@ -1,6 +1,7 @@
|
||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
reactStrictMode: true,
|
reactStrictMode: true,
|
||||||
|
trailingSlash: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = nextConfig
|
module.exports = nextConfig
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
location / {
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
index index.html index.htm;
|
||||||
|
try_files $uri $uri/ $uri.html $uri.html/ /index.html;
|
||||||
|
}
|
||||||
|
error_page 404 /index.html;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue