-
-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getServerSideProps Export Error #213
Comments
@hulxv Hey did you find any hack or workaround to this? |
@hulxv could you elaborate a bit your last answer? |
In electron js, there's a way to communicate between the main process and renderer process. |
Hi @hulxv . Thanks for your quick reply! |
Sorry for late response. |
To add a bit to this answer, you can have dynamic content, and probably want to. You just have to treat the renderer part of your application as a client-side javascript framework. For functionality like serverside rendering, next needs a server. A static export of your Next application does not have this server, which means you can't use SSR. You can use IPC in your frontend code to request data from your main process. In your main process you can get the data from a database or do a request to an external API. Your entire application does not have to be static. |
Thank you both! |
When I try use getServerSideProps I got this error build:
I went to https://nextjs.org/docs/messages/gssp-export and I found that solution
![Screenshot_20211031_004046](https://user-images.githubusercontent.com/73320969/139560406-c2a97aa0-70ea-425c-bb43-5f5797610a62.png)
But how can do that in nextron ?
scripts in package.json:
The text was updated successfully, but these errors were encountered: