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

Add a command to run and build the web version at the same time #302

Open
Mrezagolbaba opened this issue Dec 20, 2022 · 4 comments
Open
Labels
question Further information is requested

Comments

@Mrezagolbaba
Copy link

Hi

I want to use this package and I want to know if there is any way to use web and desktop applications at the same time.
because we need to run and build applications in the web version too.

Thanks

@leytonblackler
Copy link

This is something I'm interested in too - I haven't had a dig into it yet to see if I can set this up myself locally, but I'm going to have a go. Although built in support/documentation for this would be great.

@alexis-piquet
Copy link

Hey @Mrezagolbaba , could you give me more context of both usage? 'cause once the application is build you can't access to the browser versionn but in dev you can only access to the api endpoints under the directory pages/api.

@Mrezagolbaba
Copy link
Author

Hey @alexis-piquet,
This question was just related to the repository not being in production.
Since we do not want to duplicate code in both repositories, we found that using git submodules made it easy to share the code.

@alexis-piquet
Copy link

alexis-piquet commented Mar 12, 2023

@Mrezagolbaba Ok I got it, you have two different projects, one using nextron and the other use only NextJs for a website. Could I've a screenshot of your project structure and also the part of your package.json which one you have your scripts to execute both?

A quick answer to give to you my usages, 'cause I was faced to the same reflextion, I've decided to create a npm package, which one contains all I need for my nextron app and my website, I mean, components, pages, a shared directory (which one contains hooks, helpers method, override modules coming from external libraries and also the sitemap).
NextJs allow you to create dynamic routes. I've created many methods to manipulate the href.

So in my application and in my website I've the smallest part of NextJs to create applications, so when I bump the package version I just need to bump the version on my projects and that's it!

For you it's a bit different 'cause you have decided to use gitHub sub modules, and I'm intersting to have a better visibility of you project structure. But maybe my suggestion can solved your issue reflextion. Let me know.

@saltyshiomix saltyshiomix added the question Further information is requested label Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants