Skip to content

Commit

Permalink
Merge branch 'wegue-oss:master' into custom-layer-properties
Browse files Browse the repository at this point in the history
  • Loading branch information
sronveaux authored Nov 13, 2023
2 parents a0078c1 + 8571561 commit 5b4f11a
Show file tree
Hide file tree
Showing 29 changed files with 1,765 additions and 1,076 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module.exports = {
extends: [
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
'plugin:vue/essential',
'plugin:vuetify/recommended',
'@vue/standard'
],
rules: {
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ npm run lint:fix

See [Configuration Reference](https://cli.vuejs.org/config/).

### ENV VARs

Besides the environment variables supported by Vue CLI Wegue offers the following ENV VARs:

- `WGU_PUBLIC_PATH` allows to modify the [publicPath](https://cli.vuejs.org/config/#publicpath) Vue CLI configuration, which is used in the production build. Default of `publicPath` is `'./'`.

## Run with Docker

Versioned Docker images are available on [DockerHub](https://hub.docker.com/r/meggsimum/wegue/tags).
Expand Down
2 changes: 1 addition & 1 deletion app-starter/WguAppTemplate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

<slot name="wgu-before-content" />
<v-main app>
<v-container id="ol-map-container" fluid fill-height class="pa-0">
<v-container id="ol-map-container" fluid class="fill-height pa-0">
<wgu-map />
<!-- layer loading indicator -->
<wgu-maploading-status />
Expand Down
13 changes: 13 additions & 0 deletions docs/workshop.md
Original file line number Diff line number Diff line change
Expand Up @@ -1004,3 +1004,16 @@ npm run build
```

Now, you can move the contents of the `dist` directory to a web space and it can be seen online.

### Modify deployment path (publicPath)

In case you want to deploy your app somewhere else than at the root of a domain, e.g. in a sub-path like https://www.foobar.com/my-app/,
you will need to specify that sub-path for the production build. This can be done by using the custom Wegue ENV VAR `WGU_PUBLIC_PATH`:

```bash
WGU_PUBLIC_PATH=/my-app/
```

For more information see [publicPath VUE CLI documentation](https://cli.vuejs.org/config/#publicpath).

Note: The default of `publicPath` is `'./'`, which should work for a lot of common scenarios.
Loading

0 comments on commit 5b4f11a

Please sign in to comment.