lint
This commit is contained in:
977 files changed
+198426
-158324
No files matched your search
@@ -9,30 +9,30 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
// Single source of truth for the user-facing app version: monorepo root package.json.
|
||||
const rootPkg = JSON.parse(
|
||||
fs.readFileSync(path.resolve(__dirname, '../../package.json'), 'utf-8'),
|
||||
fs.readFileSync(path.resolve(__dirname, '../../package.json'), 'utf-8'),
|
||||
) as { version: string };
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [tailwindcss(), react()],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, 'src'),
|
||||
plugins: [tailwindcss(), react()],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, 'src'),
|
||||
},
|
||||
},
|
||||
},
|
||||
define: {
|
||||
__APP_VERSION__: JSON.stringify(rootPkg.version),
|
||||
},
|
||||
server: {
|
||||
port: 5178,
|
||||
strictPort: false,
|
||||
proxy: {
|
||||
'/api': { target: 'http://localhost:5099', changeOrigin: true, ws: true },
|
||||
'/avatar': { target: 'http://localhost:5099', changeOrigin: true },
|
||||
define: {
|
||||
__APP_VERSION__: JSON.stringify(rootPkg.version),
|
||||
},
|
||||
server: {
|
||||
port: 5178,
|
||||
strictPort: false,
|
||||
proxy: {
|
||||
'/api': { target: 'http://localhost:5099', changeOrigin: true, ws: true },
|
||||
'/avatar': { target: 'http://localhost:5099', changeOrigin: true },
|
||||
},
|
||||
},
|
||||
build: {
|
||||
// Emit into the monorepo-root dist/client so the bundled core can serve it via Hono.
|
||||
outDir: '../../dist/client',
|
||||
emptyOutDir: true,
|
||||
},
|
||||
},
|
||||
build: {
|
||||
// Emit into the monorepo-root dist/client so the bundled core can serve it via Hono.
|
||||
outDir: '../../dist/client',
|
||||
emptyOutDir: true,
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user