Skip to content

chore: update preview and make some errors somewhat more insightful#76

Merged
Emyrk merged 4 commits intomainfrom
stevenmasley/preview_update
Mar 18, 2026
Merged

chore: update preview and make some errors somewhat more insightful#76
Emyrk merged 4 commits intomainfrom
stevenmasley/preview_update

Conversation

@Emyrk
Copy link
Member

@Emyrk Emyrk commented Mar 9, 2026

Also fixed a bug where json marshaling functions returned some opaque "Something went wrong".

This primarily just updates the golang used for dynamic parameters to match main

I also had to gzip the wasm. The wasm got to a size >100MB, not allowed by Github. We should probably bring down this size, but gzip was an easy solve and it gets gzipped anyway by vercel. There was some magic decompression going in in localhost vs vercel. These changes were tested locally and on vercel.

Test an example that was fixed:

terraform {
  required_providers {
    coder = {
      source = "coder/coder"
    }
  }
}

locals {
  vscode_name = "VSCode"            #<--------------- Local value
  ides = [
    {
      name = local.vscode_name,     #<--------------- Nested local
      value = "vscode",
    },
  ]
}

data "coder_parameter" "ide_picker" {
  name = "ide_picker"
  type = "list(string)"
  form_type = "multi-select"
  dynamic "option" {
    for_each = local.ides
    content {
      name  = option.value.name
      value = option.value.value
    }
  }
}

@vercel
Copy link

vercel bot commented Mar 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
playground Ready Ready Preview, Comment Mar 18, 2026 4:02pm

Request Review

@Emyrk Emyrk merged commit 37ad2f4 into main Mar 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants