Skip to content

Commit

Permalink
fix: docker nginx config
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraccaman committed Sep 14, 2024
1 parent 6992a3e commit 5e1ca0d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions apps/faucet/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ require("dotenv").config({ path: resolve(__dirname, ".env") });

const { NODE_ENV } = process.env;

const ASSET_PATH = "/";

const createStyledComponentsTransformer =
require("typescript-plugin-styled-components").default;

Expand Down Expand Up @@ -62,7 +60,7 @@ module.exports = {
faucet: "./src",
},
output: {
publicPath: ASSET_PATH,
publicPath: "",
path: resolve(__dirname, `./build/`),
filename: "[name].bundle.js",
},
Expand Down
3 changes: 1 addition & 2 deletions docker/faucet/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ server {
location / {
root /usr/share/nginx/html;
index index.html index.htm;
rewrite ^([^.]*[^/])$ $1/ permanent;
try_files $uri $uri/ =404;
try_files $uri $uri/ $uri.html /index.html;
}
gzip off;
}
2 changes: 1 addition & 1 deletion docker/namadillo/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ server {
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ =404;
try_files $uri $uri/ $uri.html /index.html;
}
gzip off;
}

0 comments on commit 5e1ca0d

Please sign in to comment.