Skip to content

Commit

Permalink
fix: docker
Browse files Browse the repository at this point in the history
  • Loading branch information
revolunet committed Dec 30, 2024
1 parent 3a9403b commit 3d0869f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ ENV NEXT_TELEMETRY_DISABLED 1
RUN if [ -z "$PRODUCTION" ]; then \
echo "Overriding .env for staging"; \
cp .env.staging .env.production; \
fi && \
yarn build
fi


RUN \
Expand Down
18 changes: 15 additions & 3 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ const Home: NextPage = () => {
background
desc={`Ajouter des fichiers et les intérroger`}
linkProps={{
href: `#not`,
onClick: async () => {
href: `/`,
onClick: async (e) => {
e.preventDefault();
const name = prompt("Nom de la collection à créer ?");
if (name) {
const collectionId = await createCollection({
Expand All @@ -74,7 +75,18 @@ const Home: NextPage = () => {
},
}}
size="small"
title={"Nouveau"}
title={
<>
<i
className={fr.cx(
"fr-icon--lg",
"fr-icon-add-circle-fill",
"fr-mr-1w"
)}
></i>
Nouveau
</>
}
titleAs="h3"
/>
{collections
Expand Down

0 comments on commit 3d0869f

Please sign in to comment.