Giter Club home page Giter Club logo

Comments (1)

mfrangakis avatar mfrangakis commented on September 2, 2024

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.

from open-next.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.