Compare commits

...

2 Commits

Author SHA1 Message Date
Asher 71d10b1b13
Capitalize 2024-08-26 11:34:20 -08:00
Asher f74333cef3
Run formatter
Not sure why it keeps trying to indent the options though, in CI it
wants it flat.  Going to keep it flat for now until we figure it out.
2024-08-26 11:31:52 -08:00
2 changed files with 15 additions and 14 deletions

View File

@ -20,6 +20,7 @@
- [Proxying to a Vue app](#proxying-to-a-vue-app)
- [Proxying to an Angular app](#proxying-to-an-angular-app)
- [Proxying to a Svelte app](#proxying-to-a-svelte-app)
- [Prefixing `/absproxy/<port>` with a path](#prefixing-absproxyport-with-a-path)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
<!-- prettier-ignore-end -->
@ -439,5 +440,5 @@ This is a case where you need to serve an application via `absproxy` as explaine
For example: `http://my-code-server.com/user/123/workspace/my-app`. To achieve this result:
1. start code server with the switch `--abs-proxy-base-path=/user/123/workspace`
1. Start code server with the switch `--abs-proxy-base-path=/user/123/workspace`
2. Follow one of the instructions above for your framework.

View File

@ -118,18 +118,18 @@ interface Option<T> {
type OptionType<T> = T extends boolean
? "boolean"
: T extends OptionalString
? typeof OptionalString
: T extends LogLevel
? typeof LogLevel
: T extends AuthType
? typeof AuthType
: T extends number
? "number"
: T extends string
? "string"
: T extends string[]
? "string[]"
: "unknown"
? typeof OptionalString
: T extends LogLevel
? typeof LogLevel
: T extends AuthType
? typeof AuthType
: T extends number
? "number"
: T extends string
? "string"
: T extends string[]
? "string[]"
: "unknown"
export type Options<T> = {
[P in keyof T]: Option<OptionType<T[P]>>
@ -282,7 +282,7 @@ export const options: Options<Required<UserProvidedArgs>> = {
},
"abs-proxy-base-path": {
type: "string",
description: "The base path to prefix all absproxy requests",
description: "The base path to prefix to all absproxy requests",
},
}