diff --git a/packages/generator-react-server/generators/app/templates/routes.js b/packages/generator-react-server/generators/app/templates/routes.js index e84c6ea0b..cbed99e55 100644 --- a/packages/generator-react-server/generators/app/templates/routes.js +++ b/packages/generator-react-server/generators/app/templates/routes.js @@ -1,10 +1,11 @@ +const path = require('path'); module.exports = { routes: { HelloWorld: { path: ['/'], method: 'get', - page: './pages/hello-world', + page: path.join('.', 'pages', 'hello-world'), }, }, };