- base_templates/: шаблоны платформы fastapi, streamlit, airflow без изменений - contour/: платформа, подтверждённые версии, грабли, профили 4 типов приложений - project-kit/: SDD (S/M/L, delta/spec/plan, constitution, DoR/DoD) + grill, критик тестов, UX gate, handoff; один канон AGENTS.md для Cursor и Claude Code - scripts/init_project.sh: сборка нового проекта или подключение kit к существующему - docs/decisions/0001: что перенесено из elite_vibecoding и dmukp и почему Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139EkK4ShEj52pM9Z5UCwM1
29 lines
845 B
TypeScript
29 lines
845 B
TypeScript
import { defineConfig, loadEnv } from '@rsbuild/core';
|
|
import { pluginReact } from '@rsbuild/plugin-react';
|
|
|
|
const { publicVars, rawPublicVars } = loadEnv({prefixes: ['REACT_APP_']});
|
|
|
|
export default defineConfig({
|
|
server: {
|
|
base: (rawPublicVars['REACT_APP_ROOT_PATH'] !== undefined) ? rawPublicVars['REACT_APP_ROOT_PATH'] : '/'
|
|
},
|
|
output: {
|
|
filename: {
|
|
js: '[name]_script.[contenthash:8].js',
|
|
css: '[name]_style.[contenthash:8].css',
|
|
},
|
|
assetPrefix: (rawPublicVars['REACT_APP_ROOT_PATH'] !== undefined) ? rawPublicVars['REACT_APP_ROOT_PATH'] : './'
|
|
},
|
|
html: {
|
|
template: './public/index.html',
|
|
},
|
|
source: {
|
|
include: [{ not: /[\\/]core-js[\\/]/ }],
|
|
define: {
|
|
...publicVars,
|
|
'process.env': JSON.stringify(rawPublicVars),
|
|
}
|
|
},
|
|
plugins: [pluginReact()],
|
|
});
|