sitevision / sitevision-apps

Create SiteVision WebApps and RESTApps
15 stars 17 forks source link

Added possibility to use http on local development #45

Closed filiphuhta closed 2 years ago

filiphuhta commented 2 years ago

Added possibility to use the scripts ”npm run create-addon” and ”npm run dev ” with local development with HTTP. Which is default when you run your own sitevison server locally.

Added possibility to add a true/false variable (useHTTP) in .dev_properties.json. If the variable is not set it will run as usual. I did not add the ability to add the variable when creating a sitevision app, as this is not used as frequently.

albinohrn commented 2 years ago

Nice!

I would prefer a more specific name in props, to clarify that this prop only should be used for local dev-environments.

useHTTPForDevDeploy or similar.

filiphuhta commented 2 years ago

I updated the pull request, did take your suggestion for the variable name useHTTPForDevDeploy :) @albinohrn

albinohrn commented 2 years ago

Great! This is published in @sitevision/sitevision-scripts v2.1.7