-
Notifications
You must be signed in to change notification settings - Fork 62
feat(vscode-web): support hosting on a subpath with subdomain=false
#288
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably allow all these to be customizable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Breaks in my testing
| url = var.folder == "" ? "http://localhost:${var.port}" : "http://localhost:${var.port}?folder=${var.folder}" | ||
| icon = "/icon/code.svg" | ||
| subdomain = true | ||
| subdomain = var.subdomain |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setting subdomain to false breaks the app. I think you'll have to chang the URL format when it's set.
subdomain=false
|
@matifali I think this has be done for it to work I see the Juypter accomplishing this by setting the url to the full path, but I thought I tried that and it did not work for this. |
|
@Emyrk A Community member successfully ran Jupyter on a subpath by setting the full URL. See #313 |
I do see that. I think it depends on how urls are constructed within the app. I am pretty sure I tried this with VSCode and it did not. Using the exact same technique. If someone has more time to try it, please do. |
- Consolidates URL and path logic using locals. - Simplifies script syntax, improving maintainability.
|
@code-asher @Emyrk I tested with both We can drop |
| ```tf | ||
| module "example" { | ||
| source = "git::https://github.com/<USERNAME>/<REPO>.git//<MODULE-NAME>?ref=<BRANCH-NAME>" | ||
| # You may need to remove the 'version' field, it is incompatible with some sources. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Version is into valid when pulling for a terraform module registry confirming to the terraform module protocol.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I would just remove this line as no version is required for modules testing from GitHub branches.
Requires coder/coder#14483