docker: switch to node-alpine
This commit is contained in:
1 parent
5d91084fe4
commit
7e97726514
4 files changed
+4
-6
No files matched your search
@@ -1,8 +1,6 @@
|
||||
name: Node.js CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ['main']
|
||||
pull_request:
|
||||
branches: ['main']
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
FROM node:20-slim
|
||||
FROM node:20-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "photon-lemmy",
|
||||
"version": "1.22.0",
|
||||
"version": "1.22.1",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "vite dev",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { PUBLIC_SSR_ENABLED } from '$env/static/public'
|
||||
import { env } from '$env/dynamic/public'
|
||||
import { md, mdInline, photonify } from '$lib/components/markdown/markdown'
|
||||
import { onMount } from 'svelte'
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
From server to client, the rendered html won't change for some reason
|
||||
I have no clue why this fixes it, but it does.
|
||||
*/
|
||||
if (PUBLIC_SSR_ENABLED.toLowerCase() == 'true') {
|
||||
if (env?.PUBLIC_SSR_ENABLED?.toLowerCase() == 'true') {
|
||||
onMount(() => {
|
||||
rendered = `${rendered} `
|
||||
replaceURLs(div, rendered)
|
||||
|
||||
Reference in new issue
Block a user