We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c738552 + 04f137d commit c776b17Copy full SHA for c776b17
packages/cli/src/lib/index.js
@@ -144,7 +144,7 @@ export const writeFilesTask = (files, options) => {
144
export const addRoutesToRouterTask = (routes) => {
145
const redwoodPaths = getPaths()
146
const routesContent = readFile(redwoodPaths.web.routes).toString()
147
- const newRoutesContent = routes.reduce((content, route) => {
+ const newRoutesContent = routes.reverse().reduce((content, route) => {
148
if (content.includes(route)) {
149
return content
150
}
0 commit comments