Skip to content

Commit

Permalink
fix(routes): forced index to dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
mrviniciux committed Nov 8, 2024
1 parent 657e226 commit 20a89af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
API_URL=http://localhost:3000/api
NEXT_PUBLIC_API_URL=http://localhost:3000/api
NEXTAUTH_URL=http://localhost:3000/api/auth
NEXTAUTH_SECRET=iH2l7bdSwWBZ0uqOPcBgey0zNqR6SS2udhF6H8GFY40=
7 changes: 5 additions & 2 deletions src/i18n/routing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ export const routing = defineRouting({
},
},
pathnames: {
'/': '/',
'/dashboard': '/dashboard',
'/': '/dashboard',
'/dashboard': {
'pt-BR': '/dashboard',
'en-US': '/dashboard',
},
'/orders': {
'pt-BR': '/pedidos',
'en-US': '/orders',
Expand Down

0 comments on commit 20a89af

Please sign in to comment.