change instace env var handling
This commit is contained in:
parent
8d84efeca0
commit
bbc6ba5f08
@ -2,8 +2,8 @@ module.exports = {
|
||||
plugins: {
|
||||
"posthtml-expressions": {
|
||||
locals: {
|
||||
INSTANCE: process.env.INSTANCE
|
||||
INSTANCE: process.env.INSTANCE || 'eldritch.cafe'
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
@ -34,7 +34,7 @@
|
||||
|
||||
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', [
|
||||
'np',
|
||||
@ -160,4 +160,4 @@
|
||||
|
||||
stickyObserver.observe(viewerEl)
|
||||
})
|
||||
</script>
|
||||
</script>
|
||||
|
@ -17,11 +17,9 @@
|
||||
<meta name="theme-color" content="#635776">
|
||||
</head>
|
||||
<body>
|
||||
<if condition="INSTANCE">
|
||||
<script>
|
||||
window.instance = '{{ INSTANCE }}';
|
||||
</script>
|
||||
</if>
|
||||
<script src="main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user