Skip to content

[Help] Setting up Nextjs project #69

@Aniket-IN

Description

@Aniket-IN

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. 😓

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions