Skip to content

Commit

Permalink
chore: merge gh-87.
Browse files Browse the repository at this point in the history
perf: use vite-react-swc.
perf: add config for netlify avoid refresh page become page 404.

release-as: v0.6.5
  • Loading branch information
TrNgTien authored Nov 2, 2023
1 parent 5562b30 commit b528ed6
Show file tree
Hide file tree
Showing 7 changed files with 4,142 additions and 4,505 deletions.
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
npm-debug.log
build
.dockerignore
**/.git
**/.github
**/.DS_Store
**/node_modules
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
FROM node:16-alpine as builder

RUN apk add --update bash
FROM node:18-slim

# Setting working directory.
WORKDIR /opt/meilisearch-ui
Expand All @@ -16,4 +14,4 @@ RUN pnpm install
EXPOSE 24900

# Running the app
CMD ["pnpm","run","start"]
CMD ["pnpm", "run", "start"]
4 changes: 4 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@
},
"repository": "https://github.com/riccox/meilisearch-ui",
"homepage": "https://github.com/riccox/meilisearch-ui#readme",
"author": {
"email": "[email protected]",
"name": "Ricco Xie",
"url": "https://ricco.riccox.com"
},
"author": "Ricco Xie <[email protected]> (https://ricco.riccox.com)",
"dependencies": {
"@emotion/react": "^11.11.1",
"@hookform/resolvers": "^3.3.1",
Expand Down Expand Up @@ -58,7 +54,7 @@
"@types/qs": "^6.9.8",
"@types/react": "^18.2.22",
"@types/react-dom": "^18.2.7",
"@vitejs/plugin-react": "^4.0.4",
"@vitejs/plugin-react-swc": "^3.4.0",
"autoprefixer": "^10.4.15",
"eslint": "8.47.0",
"eslint-config-react-app": "^7.0.1",
Expand All @@ -69,5 +65,7 @@
"typescript": "5.1.6",
"vite": "^4.4.9"
},
"version": "0.6.4"
}
"version": "0.6.4",
"main": "index.js",
"license": "MIT"
}
Loading

1 comment on commit b528ed6

@vercel
Copy link

@vercel vercel bot commented on b528ed6 Nov 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.