Skip to content
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

Bug: You prioritized Nextjs. I have two questions... #27663

Closed
uranusis04 opened this issue Nov 8, 2023 · 3 comments
Closed

Bug: You prioritized Nextjs. I have two questions... #27663

uranusis04 opened this issue Nov 8, 2023 · 3 comments
Labels
Resolution: Stale Automatically closed due to inactivity Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug

Comments

@uranusis04
Copy link

React version:

Steps To Reproduce

Link to code example:

The current behavior

The expected behavior

You prioritized Nextjs.
I have two questions...
First, what should I do if I need to develop a desktop app, i.e., an app that operates only on a pure client without server hosting, when the webview operates only in the app in a hybrid app?
Second, when developing with nextjs, moving the router is slower than pure react development. It's very unfortunate that I want quick screen switching when moving.

@uranusis04 uranusis04 added the Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug label Nov 8, 2023
@bhavesh149
Copy link

For developing a desktop app using Next.js without server hosting, you can consider using Next.js in "static site generation" (SSG) mode. This allows you to generate static HTML at build time, and the resulting files can be deployed without the need for a server.

Follow below steps:
1.Choose SSG:
// next.config.js
module.exports = {
exportPathMap: function () {
return {
'/': { page: '/' },
// Add other paths as needed
}
}
}

2.Build and Export:
npm run build
npm run export

3.Run Locally:
npx serve -s out

This will serve your app on http://localhost:5000, and you can distribute the contents of the out folder for users to run locally without server hosting.

Copy link

github-actions bot commented Apr 5, 2024

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

@github-actions github-actions bot added the Resolution: Stale Automatically closed due to inactivity label Apr 5, 2024
Copy link

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Stale Automatically closed due to inactivity Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug
Projects
None yet
Development

No branches or pull requests

2 participants