Skip to content

Not possible to omit a {block} in a snippet import if it's declared in the snippet #6821

@dword-design

Description

@dword-design

If I have this snippet:

(foo) {
  reverse_proxy localhost:3000
  {block}
}

This works:

example.com {
  import foo {
    file_server
  }
}

But this doesn't:

example.com {
  import foo
}

So basically the block is always mandatory and it's not possible to not declare it.

(The example doesn't make any sense, it's basically to show the issue.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐞Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions