- 1: Modify `.env.development`file and update the `VUE_APP_OPENSHOT_API_URL` variable used in development mode.
- 1: Modify `.env.development`and set `VUE_APP_OPENSHOT_API_URL` to the API used by the development server.
This is a required step when building this application for use with your own **OpenShot Cloud API** server.
- 2: Modify `vue.config.js` file and update the `publicPath` variable to the path you are serving the app from.
For example: `/` is the web server root, `/apps/simple-editor` if serving from a sub-folder, etc...
...
...
@@ -48,8 +48,7 @@ npm run serve
npm run build
```
- 1: Modify `.env.production` file and update the `VUE_APP_OPENSHOT_API_URL` variable used in production/build mode.
This is a required step when building this application for use with your own **OpenShot Cloud API** server.
- 1: Build the app. Production builds use the origin serving Simple Editor as the OpenShot API URL.
- 2: Modify `vue.config.js` file and update the `publicPath` variable to the path you are serving the app from.
For example: `/` is the web server root, `/apps/simple-editor` if serving from a sub-folder, etc...
...
...
@@ -99,8 +98,12 @@ npm run lint
Configuration variables are stored in `.env` and `vue.config.js` files.
-`VUE_APP_GA_ID`: Global site tag (gtag.js) for tracking on Google Analytics
-`VUE_APP_OPENSHOT_API_URL`: URL of your own OpenShot Cloud API instance
-`VUE_APP_OPENSHOT_API_URL`: Optional API URL override. Production defaults to the origin serving Simple Editor; development can set this when the API runs elsewhere.
-`VUE_APP_SHOW_API_LINKS`: Set to `false` to hide the API navigation link and all contextual "View in API" actions (defaults to enabled)
-`publicPath`: Relative path where this app will be served by your production web server
Simple Editor reads the API version and demo-mode state from the public
`/info/status/` endpoint. If that request is unavailable, it safely defaults to
normal (non-demo) behavior.
See [Configuration Reference](https://cli.vuejs.org/config/).