change instace env var handling
This commit is contained in:
parent
8d84efeca0
commit
bbc6ba5f08
|
@ -2,7 +2,7 @@ module.exports = {
|
||||||
plugins: {
|
plugins: {
|
||||||
"posthtml-expressions": {
|
"posthtml-expressions": {
|
||||||
locals: {
|
locals: {
|
||||||
INSTANCE: process.env.INSTANCE
|
INSTANCE: process.env.INSTANCE || 'eldritch.cafe'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
const cache = new DeepSet()
|
const cache = new DeepSet()
|
||||||
|
|
||||||
const domain = writableStorage(localStorage, 'domain', window.instance || 'eldritch.cafe')
|
const domain = writableStorage(localStorage, 'domain', window.instance)
|
||||||
|
|
||||||
const hashtags = writableStorage(localStorage, 'hashtags', [
|
const hashtags = writableStorage(localStorage, 'hashtags', [
|
||||||
'np',
|
'np',
|
||||||
|
|
|
@ -17,11 +17,9 @@
|
||||||
<meta name="theme-color" content="#635776">
|
<meta name="theme-color" content="#635776">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<if condition="INSTANCE">
|
|
||||||
<script>
|
<script>
|
||||||
window.instance = '{{ INSTANCE }}';
|
window.instance = '{{ INSTANCE }}';
|
||||||
</script>
|
</script>
|
||||||
</if>
|
|
||||||
<script src="main.js"></script>
|
<script src="main.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue