Skip to content

Commit

Permalink
FIX: process.env -> import.meta.env
Browse files Browse the repository at this point in the history
  • Loading branch information
klauer committed May 25, 2023
1 parent 1d68936 commit 8342ff4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docker/.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ WHATRECORD_FRONTEND_PORT=8896

# This is the container name, so the frontend can communicate with the backend
WHATRECORD_API_HOST=whatrecord
# Alternatively, if run locally or on a different host, you could make this
# the hostname/IP address:
# WHATRECORD_API_HOST=127.0.0.1

# This is the port the backend (whatrecord server) listens on. You can
# access it via localhost:${API_PORT}.
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/recordinfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export default {
computed: {
appliance_viewer_url() {
const appliance_viewer_url =
process.env.VUE_APP_WHATRECORD_ARCHIVER_URL || "";
import.meta.env.WHATRECORD_ARCHIVER_URL || "";
if (!appliance_viewer_url || !this.record) {
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/settings.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const enabled_plugins = (
process.env.VUE_APP_WHATRECORD_PLUGINS || "happi twincat_pytmc netconfig"
import.meta.env.WHATRECORD_PLUGINS || "happi twincat_pytmc netconfig"
).split(" ");
export const happi_enabled = enabled_plugins.indexOf("happi") >= 0;
export const netconfig_enabled = enabled_plugins.indexOf("netconfig") >= 0;
Expand Down

0 comments on commit 8342ff4

Please sign in to comment.