Skip to content

Commit

Permalink
feat: Make yarn no longer needed
Browse files Browse the repository at this point in the history
Signed-off-by: Ioan-Teodor Teugea <[email protected]>
  • Loading branch information
John-Ted authored and razvand committed Mar 2, 2024
1 parent ba22cbb commit 1308bb1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ WORKDIR /docs
# Install dependencies based on the preferred package manager
COPY package.json package-lock.json* ./

RUN npm install --force
RUN npm install

# Dev image
FROM base AS dev
Expand Down Expand Up @@ -71,4 +71,5 @@ EXPOSE 3000
ENV PORT=3000
ENV HOSTNAME="0.0.0.0"

CMD ["npm", "run", "start"]
#TODO (by someone else): replace cmd with "npm run start" and make it work
CMD ["node", "server.js"]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@chakra-ui/utils": "2.0.14",
"@codesandbox/sandpack-react": "^1.2.2",
"@codesandbox/sandpack-themes": "^1.0.0",
"@docsearch/react": "^1.0.0-alpha.27",
"@docsearch/react": "^3.0.0",
"@docusaurus/utils": "2.3.0",
"@emotion/react": "^11.10.0",
"@emotion/styled": "^11.9.3",
Expand Down
2 changes: 2 additions & 0 deletions src/components/algolia-search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,15 @@ function AlgoliaSearch() {
indexName='unikraft'
apiKey='7997f4960bc7a01d21c00c1fd4d61b22'
appId='0Y6SVWJDUS'
/* XXX: Commented to eliminate build error with new docsearch version
//@ts-expect-error we allow this error because we don't need what is missing here.
navigator={{
navigate({ suggestionUrl }) {
setIsOpen(false)
router.push(suggestionUrl)
},
}}
*/
hitComponent={Hit}
transformItems={(items) => {
return items.map((item) => {
Expand Down

0 comments on commit 1308bb1

Please sign in to comment.