From 49d17099974c55bdb230ea3af4bd7baff9b9e070 Mon Sep 17 00:00:00 2001 From: Rob Thorne Date: Fri, 22 Jul 2022 18:30:05 -0700 Subject: [PATCH] Add flags to sample program for use behind proxies --- examples/sample-program/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/sample-program/main.go b/examples/sample-program/main.go index 5d8e9d2..61f526b 100644 --- a/examples/sample-program/main.go +++ b/examples/sample-program/main.go @@ -117,6 +117,8 @@ func main() { flag.StringVar(&config.Environment, "env", "development", "development|production") flag.StringVar(&config.JSProjectPath, "assets", "", "location of javascript files.") + flag.StringVar(&config.DevServerDomain, "domain", "localhost", "Domain of the dev server.") + flag.BoolVar(&config.HTTPS, "https", false, "Expect dev server to use HTTPS") flag.StringVar(&config.AssetsPath, "dist", "", "dist directory relative to the JS project directory.") flag.StringVar(&config.EntryPoint, "entryp", "", "relative path of the entry point of the js app.") flag.StringVar(&config.Platform, "platform", "", "vue|react|svelte")