Skip to content

Commit b57bba1

Browse files
committed
feat: fix react router vercel issue
1 parent fd3e9b1 commit b57bba1

4 files changed

Lines changed: 4811 additions & 0 deletions

File tree

.dockerignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
CONTRIBUTING.md
2+
LICENSE
3+
README.md
4+
ab-results-README.md-filtered.json
5+
ab-results-README.md-markdown-table.json
6+
ab-results-README.md.json
7+
commitlint.config.js
8+
dist
9+
eslint.config.js
10+
index.html
11+
node_modules
12+
package-lock.json
13+
package.json
14+
postcss.config.js
15+
public
16+
src
17+
tailwind.config.js
18+
vite.config.js

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM node:20-alphine
2+
3+
WORKDIR /app
4+
5+
COPY package*.json ./
6+
7+
RUN npm install
8+
9+
COPY . .
10+
11+
RUN npm run build
12+
13+
EXPOSE 3000
14+
15+
CMD ["npm", "start"]

vercel.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"rewrites": [{ "source": "/(.*)", "destination": "/" }]
3+
}

0 commit comments

Comments
 (0)