diff --git a/src/components/DevWarning.jsx b/src/components/DevWarning.jsx index daeda634..9434f123 100644 --- a/src/components/DevWarning.jsx +++ b/src/components/DevWarning.jsx @@ -4,7 +4,7 @@ import semver from 'semver' export default class DevWarning extends Component { render() { - const version = semver.parse(process.env.DAKARA_VERSION) + const version = semver.parse(import.meta.env.DAKARA_VERSION) if (version.prerelease.length > 0) { console.warn('You are running a dev version, use it at your own risks!') diff --git a/src/components/Footer.jsx b/src/components/Footer.jsx index be65e310..a4a2a747 100644 --- a/src/components/Footer.jsx +++ b/src/components/Footer.jsx @@ -2,9 +2,9 @@ import React, { Component } from 'react' export default class Footer extends Component { render() { - const version = process.env.DAKARA_VERSION - const bugtracker = process.env.DAKARA_BUGTRACKER - const projectHomepage = process.env.DAKARA_PROJECT_HOMEPAGE + const version = import.meta.env.DAKARA_VERSION + const bugtracker = import.meta.env.DAKARA_BUGTRACKER + const projectHomepage = import.meta.env.DAKARA_PROJECT_HOMEPAGE return (