diff --git a/Dockerfile b/Dockerfile index 3ddfec6..4059b4b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,6 +26,9 @@ FROM base AS build COPY --from=deps /app/node_modules ./node_modules COPY . . COPY --from=studio-build /app/dist ./public/studio +# Remove index.html so /studio requests fall through to the SSR route, +# which rewrites /static/ asset paths to /studio/static/ before serving. +RUN rm -f ./public/studio/index.html ARG SANITY_PROJECT_ID ARG SANITY_DATASET=production ARG SANITY_API_TOKEN