TypeError when attempting SSG for /popular route with react-server build #115
Replies: 1 comment 2 replies
-
Hi @jinwatanabe, the error is about the static paths defined by your You are wrapping the paths into an object with a export default {
root: "src/app",
export() {
- return {
+ return [
- routes: [
{
path: "/popular",
- remote: true,
},
- ],
+ ];
};
}, See more at https://react-server.dev/router/static |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm encountering an error while trying to implement Static Site Generation (SSG) for my /popular route using react-server.
Set up SSG configuration for /popular route
Run react-server build command
Error Message
GitHub Repo
https://github.com/jinwatanabe/tech-article-app
Questions
Are there any known issues with SSG in the current experimental version?
Any guidance would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions