Skip to content

Commit

Permalink
fix: i18n namespace loading on dynamic forms
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivo committed May 9, 2023
1 parent e1dcbf3 commit 8933cc2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions apps/client/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ module.exports = {
"/admin/signup": ["admin-signup"],
"/admin/running": ["admin-running"],
"/admin/md-pr/update": ["admin-mdpr-update"],
"/dynamics/running": ["running"],
"rgx:^/dynamics": ["forms"],
"/dynamic/running": ["running"],
"rgx:^/dynamic/[A-Za-z]+": ["forms"],
"/reset-password": ["reset-password"],
"/reset-password/*": ["reset-password"]
"/reset-password/[resetId]": ["reset-password"]
}
};
5 changes: 4 additions & 1 deletion apps/client/src/lib/api.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import axios from "axios";

export const api = axios.create({
baseURL: "/server/api/v1"
baseURL:
process.env.NODE_ENV === "development"
? "http://127.0.0.1:5000/api/v1"
: "/server/api/v1"
});

0 comments on commit 8933cc2

Please sign in to comment.