From 17708f1430fd63e9350af82abe40a7dd78b15b8c Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sun, 14 Dec 2025 17:08:26 -0800 Subject: Simplify host asset bundling --- Dockerfile | 2 -- docker-entrypoint.sh | 6 ------ esbuild.config.js | 1 - src/index.html | 3 --- src/ts/script.ts | 14 ++++++++++++++ 5 files changed, 14 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index 26c8c2a..a7f4197 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,8 +10,6 @@ RUN npm run build FROM nginx:alpine as adelie -ENV HOST=https://adelie.liz.coffee - COPY --from=builder /app/dist/ /usr/share/nginx/html/ COPY nginx.conf /etc/nginx/nginx.conf COPY docker-entrypoint.sh /docker-entrypoint.sh diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index c2facc7..3ea754c 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -1,9 +1,3 @@ #!/bin/sh -if [ -n "$HOST" ]; then - sed -i "s|ASSET_BASE_PLACEHOLDER|$HOST|g" /usr/share/nginx/html/index.html -else - sed -i 's|"ASSET_BASE_PLACEHOLDER"|""|g' /usr/share/nginx/html/index.html -fi - exec nginx -g 'daemon off;' diff --git a/esbuild.config.js b/esbuild.config.js index 1a7e09b..cb83e51 100644 --- a/esbuild.config.js +++ b/esbuild.config.js @@ -38,7 +38,6 @@ async function copyAssets() { async function processHTML() { let html = await fs.readFile('src/index.html', 'utf8'); - html = html.replace(/ASSET_BASE_PLACEHOLDER/g, ''); await fs.writeFile('dist/index.html', html); } diff --git a/src/index.html b/src/index.html index b20e703..835f76d 100644 --- a/src/index.html +++ b/src/index.html @@ -4,9 +4,6 @@ Liz CSS - Framework Demo -