lando / node

The Official Node Lando plugin.
https://docs.lando.dev/node
GNU General Public License v3.0
2 stars 2 forks source link

[Help] Setting up Nextjs project #69

Open Aniket-IN opened 7 months ago

Aniket-IN commented 7 months ago

Hi 👋,

First of all, thank you so much for this Amazing tool 🙏 I'm new to Lando, was trying to setup a Nextjs project for development. Couldn't find any docs/blog for configuring Nextjs with Lando.

I did try this config:

name: next-app
services:
  node:
    type: node:18
    ssl: true
    build:
      - npm install
    command: npm run dev

proxy:
  node:
    - next-app.lndo.site:3000

tooling:
  npm:
    service: node
  npx:
    service: node

It does open the app on next-app.lndo.site, but when I edit some file it doesn't reflect the changes in the app. Hot Module Reload and manual refresh nothing works.

Only rebuilding, reflects the changes. Not sure, what I'm missing. 😓