This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
react tailwindcss react router
yarn add react-router-dom
react-icons
yarn add react-icons
auth 0 zustand
yarn add zustand
ant design mobile(antd-mobile)
yarn add antd-mobile
jwt-decode
yarn add jwt-decode
-
zustand
-
auth0 × 登录方案是UID(Miniapp) + Auth0 两套机制(WebApp)
-
prisma orm(SSR)
-
record enter、exist time and duration
-
复制 assets
-
复制components
-
复制store
-
把 , 包裹app
-
修改包信息
"name": "miniapp-nextjs",
"author": "FGA TECH TEAM",
"private": true,
"version": "0.0.1",
"app_id": "04f6f82ae7c24608917b",
"shared": false,
"instagram": "https://www.instagram.com/fgacyc/",
"github": "https://github.com/fgacyc/",
"type": "module",
6.修改vite.config.js
export default defineConfig({
plugins: [react()],
server: {
open: true,
port: 5173,
host: '0.0.0.0'
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
})
- 修改全局样式
body{
background-color: #F2F3F5;
overflow-y: hidden;
}