change instace env var handling
This commit is contained in:
@@ -2,8 +2,8 @@ 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',
|
||||||
@@ -160,4 +160,4 @@
|
|||||||
|
|
||||||
stickyObserver.observe(viewerEl)
|
stickyObserver.observe(viewerEl)
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
@@ -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>
|
||||||
|
Reference in New Issue
Block a user