Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jeff
funkwhale
Commits
08b57c67
Unverified
Commit
08b57c67
authored
Feb 24, 2022
by
Kasper Seweryn
🥞
Browse files
Fix production env var checks
parent
43f609b4
Changes
3
Hide whitespace changes
Inline
Side-by-side
front/src/components/Sidebar.vue
View file @
08b57c67
...
...
@@ -590,7 +590,7 @@ export default {
)
},
production
()
{
return
import
.
meta
.
env
.
NODE_ENV
===
'
production
'
return
import
.
meta
.
env
.
PROD
}
},
watch
:
{
...
...
front/src/main.js
View file @
08b57c67
...
...
@@ -21,7 +21,7 @@ import globals from '@/components/globals' // eslint-disable-line
import
'
./registerServiceWorker
'
import
'
@/semantic
'
logger
.
default
.
info
(
'
Loading environment:
'
,
import
.
meta
.
env
.
N
ODE
_ENV
)
logger
.
default
.
info
(
'
Loading environment:
'
,
import
.
meta
.
env
.
M
ODE
)
logger
.
default
.
debug
(
'
Environment variables:
'
,
import
.
meta
.
env
)
sync
(
store
,
router
)
...
...
front/src/registerServiceWorker.js
View file @
08b57c67
...
...
@@ -4,7 +4,7 @@ import { register } from 'register-service-worker'
import
store
from
'
./store
'
if
(
import
.
meta
.
env
.
NODE_ENV
===
'
production
'
)
{
if
(
import
.
meta
.
env
.
PROD
)
{
register
(
`
${
import
.
meta
.
env
.
BASE_URL
}
service-worker.js`
,
{
registrationOptions
:
{
scope
:
'
/
'
},
ready
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment