Skip to content
Snippets Groups Projects
Commit e9b2ec09 authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

fix: build issue

parent f0ffd63b
Branches
Tags
2 merge requests!11Recette,!9Dev
......@@ -23,7 +23,7 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/pamn",
"outputPath": "dist/",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
......
......@@ -7,17 +7,11 @@ server {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ /index.html;
sub_filter '<html lang="en">' '<html lang="fr">';
}
# Rule serving the en build
location /en {
try_files $uri$args /en/index.html;
}
# redirecting the /fr url to the new location of the fr build
location ~ ^/fr(.*)$ {
return 301 $scheme://$http_host$1$is_args$args;
}
location /api {
rewrite ^/api/(.*) /$1 break;
proxy_pass http://json-server:3000/api;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment