chore: 初始化项目结构并添加基础配置文件
添加后端API和前端项目的初始目录结构,包括应用层模块、工具模块和模型定义 配置前后端的.dockerignore文件以排除开发环境文件 添加前端样式文件,包括字体、Tailwind CSS和主题配置 初始化Python虚拟环境中的类型标记文件
This commit is contained in:
39
前端-孕期报告解读-figma/vite.config.ts
Normal file
39
前端-孕期报告解读-figma/vite.config.ts
Normal file
@@ -0,0 +1,39 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import path from 'path'
|
||||
import tailwindcss from '@tailwindcss/vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import basicSsl from '@vitejs/plugin-basic-ssl'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
// The React and Tailwind plugins are both required for Make, even if
|
||||
// Tailwind is not being actively used – do not remove them
|
||||
react(),
|
||||
tailwindcss(),
|
||||
// basicSsl(), // disabled for cloudflare tunnel compatibility
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
// Alias @ to the src directory
|
||||
'@': path.resolve(__dirname, './src'),
|
||||
},
|
||||
},
|
||||
|
||||
// File types to support raw imports. Never add .css, .tsx, or .ts files to this.
|
||||
assetsInclude: ['**/*.svg', '**/*.csv'],
|
||||
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
allowedHosts: ['.trycloudflare.com', '.loca.lt'],
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:8000',
|
||||
changeOrigin: true,
|
||||
},
|
||||
'/uploads': {
|
||||
target: 'http://localhost:8000',
|
||||
changeOrigin: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user