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

Open-next doesn't work on windows #385

Open
conico974 opened this issue Mar 14, 2024 · 1 comment
Open

Open-next doesn't work on windows #385

conico974 opened this issue Mar 14, 2024 · 1 comment

Comments

@conico974
Copy link
Contributor

Open-next is not properly supported on windows at the moment

There will very likely be issues at runtime.
If you are on windows save yourself some time and just use WSL to build.
https://learn.microsoft.com/en-us/windows/wsl/install

@mfrangakis
Copy link

Using WSL is a good solution if you are able to migrate your project files to within WSL's filesystem (which will require running yarn install again, since some project dependencies download for the specific OS). Eg. Using git clone straight from WSL, in a directory other than /mnt/c. When the project files are on Windows (visible to WSL through the mount), build and deploy time within WSL is incredibly slow (45+ min). This is a known file access issue in WSL2 with the 9P protocol (see issue here).

For anyone that has come here looking for a workaround: we've found it best to use Github Actions to build and deploy, as part of CI/CD, even for development/staging environments. It takes only a few minutes at most, particularly if caching is used. We develop locally on Windows just using next dev, which just spins up a simple Next.js web server, which is sufficient for web layout, components, etc. Development of the SST side is a bit more tedious (requires a git commit and git push on each change), but given how much faster deployment is on Github Actions, is worth it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants