From f4b1f7722ee37331641ef6c634707124b4dafc74 Mon Sep 17 00:00:00 2001 From: chris Date: Wed, 15 Apr 2026 13:28:20 -0400 Subject: [PATCH] Fix data dir permissions and legal doc links - Dockerfile: create /app/data owned by nextjs before USER switch so fresh deployments work without manual chown. Existing servers need: sudo chown -R 1001:1001 estore/data - nav.js: fix footer legal links to point to /shop/privacy|terms|refund (pages live in estore, not main site) Co-Authored-By: Claude Sonnet 4.6 --- estore/Dockerfile | 5 +++++ main-site/nav.js | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/estore/Dockerfile b/estore/Dockerfile index 73e0a4e..61db6a1 100644 --- a/estore/Dockerfile +++ b/estore/Dockerfile @@ -38,6 +38,11 @@ COPY --from=builder /app/public ./public COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static +# Ensure the data directory exists and is writable by the nextjs user. +# For bind-mount deployments, the host directory must also be owned by uid 1001: +# sudo chown -R 1001:1001 estore/data +RUN mkdir -p /app/data && chown nextjs:nodejs /app/data + USER nextjs EXPOSE 3000 ENV PORT=3000 diff --git a/main-site/nav.js b/main-site/nav.js index 04dca05..4ff8c88 100644 --- a/main-site/nav.js +++ b/main-site/nav.js @@ -51,11 +51,11 @@ '

Copyright © ' + new Date().getFullYear() + ' Beach Party Balloons

\n' + '

All images & content are property of Beach Party Balloons. Use of images without written permission is prohibited.

\n' + '

\n' + - ' Privacy Policy\n' + + ' Privacy Policy\n' + '  · \n' + - ' Terms of Service\n' + + ' Terms of Service\n' + '  · \n' + - ' Refund & Cancellation Policy\n' + + ' Refund & Cancellation Policy\n' + '

\n' + ' \n' + '';