Skip to content

Lando configuration for custom service with nodejs building for gatby fails #19

@AbhayPai

Description

@AbhayPai

Following is my configuration file for setting up gatsby project. While starting the project it gives me red color urls for proxy host. Not sure what is wrong with this setup, since development script for gatsby works just fine once it run and browser renders the url as well with the page.

Below is the screenshot while running lando gatsby:develop command
Screen Shot 2022-11-03 at 1 01 23 PM

Below is the screenshot while running lando gatsby build command
Screen Shot 2022-11-03 at 1 02 26 PM

Screen Shot 2022-11-03 at 1 02 41 PM

name: gatsby-starter

config:
  webroot: public

proxy:
  custom-gatsby:
    - gatsby-starter.lndo.site

services:
  custom-gatsby:
    ssl: true
    type: node:14
    globals:
      gatsby-cli: latest
      yarn: latest

events:
  post-start:
    - custom-gatsby: "cd /app && yarn install && gatsby build"

tooling:
  yarn:
    service: custom-gatsby
  gatsby:
    service: custom-gatsby
  gatsby:develop:
    cmd: gatsby develop --host 0.0.0.0 --port 80
    service: custom-gatsby

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