Skip to content

Commit

Permalink
Set dynamic asset loading to work build-time
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamsf committed Aug 14, 2024
1 parent bf835ee commit 0dcbfb9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ FROM builder_base as production_build
COPY ./docker/entrypoint.sh /docker-entrypoint.sh
WORKDIR /app
COPY . /app

# Set the VITE_ASSET_SET environment variable during the build
ARG VITE_ASSET_SET=neutral
ENV VITE_ASSET_SET=$VITE_ASSET_SET

RUN npm install \
&& chmod a+x /docker-entrypoint.sh \
&& npm run build \
Expand Down
2 changes: 1 addition & 1 deletion src/components/legal/PrivacyPolicyModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function PrivacyPolicyModal({ triggerClassName }: InfoModalProps) {
</Dialog.Title>
<Dialog.Description className="mb-4 text-white">
<Trans
i18nKey="privacyPolicy.description"
i18nKey="privacyPolicy.description" ns="dynamic"
components={{ strong: <strong />, li: <li />, br: <br /> }}
/>
</Dialog.Description>
Expand Down

0 comments on commit 0dcbfb9

Please sign in to comment.